Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 2.08 KB

README_WORKING_WITH_WEB_APP.md

File metadata and controls

60 lines (34 loc) · 2.08 KB

Contents

Working with WebApp Day-to-Day

If you are returning to work on WebApp and other developers have made changes, follow these steps.

Update WeVoteServer first (the code that powers the Django/Python API Endpoints). See instructions here

Grab the latest code from https://github.com/wevote/WebApp

Activate the virtual environment:

$ cd /Users/<YOUR NAME HERE>/NodeEnvironments/WebAppEnv/
$ . bin/activate

Install changes and start web application

(WebAppEnv) $ cd /Users/<YOUR NAME HERE>/MyProjects/WebApp
(WebAppEnv) $ npm install
(WebAppEnv) $ npm start

You should be able to visit WebApp here:

http://localhost:3000

How to Update to Latest Changes from “develop” Branch

Lets assume you are working on a branch called "dale_work_feb28". Ctrl-C to stop npm from running. Then:

(WebAppEnv) $ git branch -a # See what branch you are currently set to (look for "*" on left of listing)

(WebAppEnv) $ git checkout develop # If you aren’t set to the develop branch, switch to that

(WebAppEnv) $ git pull upstream develop # Tell your personal fork on your local machine to get the latest from wevote/WebApp

(WebAppEnv) $ git push origin develop # Push this latest version of develop up to your Personal Fork on the github servers

(WebAppEnv) $ git checkout -b <your-feature-branch>

Now you need to merge locally the latest code from "develop" with your branch name. Dale does this merging with the PyCharm IDE. How you do this depends on the development environment you use.

Restart web application

(WebAppEnv) $ npm install
(WebAppEnv) $ npm start

Next: Debugging Tools and Tips

Go back to Readme Home