Closed DavidWells closed 9 years ago
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiKHMrjPqnfYzhOC47D4WS7rtDA1Nn0yl/L+QU6gBj1mI3Q4ZbR4w6tQvuIrIvHodZiGZ0nLwU+fhhrTMtvLXGYMuwRRZZ3zbx/0xQLFhKyAQ/8JHq3kBTZfdbmOYRzvBLf+h5621fZNPmfZSdmQtjFITyFOZAjFNFXbUQjDwc7k= rsa-key-20130824
node server.js npm install npm install modulename
mongod ( mine is already started at windows startup) mongo show dbs help (lists command) http://docs.mongodb.org/manual/reference/mongo-shell/
Make a Windows Service: SC CONFIG MongoDB binPath= f:\Dropbox\Websites\local\mongodb\bin\mongod.exe --config --httpinterface F:/Dropbox/Websites/local/mongodb/bin/mongodb.conf --service
pm2 kill
git pull origin master
to pull latest node codepm2 start pm2-config.json
Rinse and repeat 8 through 11 to make live updates to api.inboundnow.com
Also, you need to learn Node more specifically express: http://expressjs.com/ here is a tutorial on express APIs https://scotch.io/tutorials/build-a-restful-api-using-node-and-express-4
Start mongo daemon and node server.js to run the api locally at port 3001