Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.56 KB

RUNNING_FIRST_TIME.md

File metadata and controls

49 lines (28 loc) · 1.56 KB

Running WebApp for the First Time

Go back to Readme Home

Please make sure you have read:

Local config.js file

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

Mac users will need to install fsevents ("Native access to OS X FSEvents in Node.js"):

(WebAppEnv) $ cd ~
(WebAppEnv) $ npm install fsevents

Install and start web application

(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

Using We Vote API server Locally: OPTIONAL

The default configuration connections to our live API server at: https://api.wevoteusa.org, so this step is optional.

IFF you would like to install the We Vote API server locally, start by reading the instructions install WeVoteServer


Next: Working with WebApp Day-to-Day

Go back to Readme Home