Receives emails from the city when a snow emergency occurs, and provides an API for the front endto easily know snow emergency statuses.
Use these instructions to setup a temporary* development environment of this project.
- Fork this repository
- Create a new Virtual Machine >> SSH in >> Run vms quick install:
export GHUSER='AnthonyAstige'
(Replace AnthonyAstige with your username)curl -L -o- https://rawgit.com/codeforeauclaire/snowparking/master/api/vmsinstall.sh | bash && source ~/.nvm/nvm.sh
- Run api app
(cd ~/snowparking/api/bin && ./serve-node)
- Load http://{vms-ip}:3050/status in your browser
- Edit a file to see changes in your browser instantly
*For a permanent development environment we recommend you read the referenced script above to install locally.
I'm probably doing this wrong. I'm used to Meteor.js and not sure standards around raw node.js projects - Anthony May 2016
- Setup server
- Make free tier Ubuntu server with AWS
sudo apt-get update
sudo apt-get install nodejs
- May need to run
sudo ln /usr/bin/nodejs /usr/sbin/node
StackOverflow Reference
- May need to run
sudo apt-get install npm
sudo apt-get install mongodb
- Get code on server
./deploy
- Setup app
cd api
npm install express --save
npm install --save body-parser
npm install mongo --save
npm install moment --save
npm install moment-timezone --save
sudo npm link mongodb
(Seemed to have helped StackOverflow Reference)- Run
cd api
./serve-mongo
(Will error if not needed / already running)./serve-node
- Configure server
- Open up port 3000 as needed StackOverflow post
- Confirm running
- Go to http://localhost:3000
- Finish implementing SPECS.md
- Cleanup all the bin files to be more coherent