Please make sure you have read:
Note that for the following steps, you must have activated the WebAppEnv
Node virtual environment that you set up when preparing your environment. As a reminder, to activate the environment, you can run:
$ cd /Users/<YOUR NAME HERE>/NodeEnvironments/WebAppEnv/
$ . bin/activate
Every developer needs to maintain their own WebApp/src/js/config.js
file, which can be copied from WebApp/src/js/config-template.js
. The default configuration, copied from config-template.js
, should work as-is for new developers.
Copy WebApp/src/js/config-template.js
into WebApp/src/js/config.js
:
(WebAppEnv) $ cd /Users/<YOUR NAME HERE>/MyProjects/WebApp
(WebAppEnv) $ cp src/js/config-template.js src/js/config.js
(WebAppEnv) $ cd ~
(WebAppEnv) $ npm install fsevents
(WebAppEnv) $ cd /Users/<YOUR NAME HERE>/MyProjects/WebApp
(WebAppEnv) $ npm install // try sudo if it does not work
(WebAppEnv) $ npm start
You should be able to visit WebApp here:
http://localhost:3000
The default configuration connections to our live API server at: https://api.wevoteusa.org, so this step is optional.
If you would like to install the We Vote API server locally, start by reading the instructions to install WeVoteServer.