How to work on the tool on your local machine:
- Make sure you have Node.js installed (I used v6.11.1).
- Open the node command prompt and change into the directory that you want to clone the app to.
- Clone the repo to your local machine with
git clone https://github.com/adanaher/cliff-effects.git. - Change into the new app directory with
cd cliff-effects. - Change to the master branch with
git checkout master. - Install all necessary node packages with
npm install. This might take a few minutes. - Type
npm startto run the app in your browser in dev mode. It is set up for live updating if you make changes to the code. I would also recommend getting the React Developer Tools extension for Chrome. - Type
Ctrl-Cto stop the app from running. - Type
npm buildto build a production version of the app.
Note that I also have it set up to deploy automatically to github pages with the command npm deploy.