DoCode

A tool that automatically generates media files, such as videos, GIFs, and screenshots, from your JavaScript sketch file.

Installation (on a Mac)

  1. Make sure that Node.js is installed on your machine:
    • Open your terminal and type:
      $ node -v
      => v6.9.4 (or higher)
    • If Node.js is not installed, please go to the Node.js official site and install it.
  2. Make sure that ImageMagick is installed on your machine:
    • Open your terminal and type:
      $ convert
      => Should return the ImageMagick instructions.
    • If ImageMagick is not installed, please go to the ImageMagick download page and install it, or or type the following command on the terminal:
      $ brew install imagemagick
  3. Make sure that ffmpeg is installed on your machine:
    • Open your terminal and type:
      $ ffmpeg
      => Should return the ffmpeg instructions.
    • If ffmpeg is not installed, please go to the ffmpeg Mac OS X download page and install it, or or type the following command on the terminal:
      $ brew install ffmpeg
  4. Install the DoCode NPM package globally:
    • $ sudo npm install DoCode -g

      You might be asked to enter you Mac user password.
  5. Check that DoCode was installed correctly:
    • $ docode

      Should return the docode help ✊.

How to use

Uninstall (on a Mac)

  1. Use the following command:
    $ sudo npm uninstall -g docode

    You might be asked to enter you Mac user password.