!! Make sure to read the important note below !!
##Running it Locally
- Go install NodeJS from
http://nodejs.org/
- Get the git repo by running
git clone https://github.com/Social-Solar/solar-advocacy.git
. - Make an entry in your
/etc/hosts
file to routelocal.seia.org
to127.0.0.1
- Read Important Note and create local.js
- Navigate your terminal to the root directory of the project.
- Run
npm install
- To create an http server, run
node app
- To create both an http and https server run
node app secure
- The server will run locally on port(s) 3000 (http) and port 4000 (https)
##Running it in Production
- ssh into seia.org (get credentials from Susanna)
- Navigate to
/var/www/vhosts/solaradv.www/solar-advocacy
- run
git pull
to get the latest code from github. - Run
npm install
if needed. - Update
production.js
if needed. - Run
node app secure
Note: We'll probably want to make a service to start and stop this site.
##Important Note
I didn't include any passwords or tokens inside of github. If you look inside .gitignore
you can see that config/production.js
and config/local.js
are not included in the project.
To run the project, you'll need to add those passwords and tokens. Inside the config/
folder, make a copy of default.js
and call it local.js
. If you email the Vivint guys, we can give you the facebook credentials. If you talk to SEIA, they can give you the Salsa credentials.