CodeAcross Project: GovWiki
- http://docs.mongodb.org/v2.2/mongo/
- http://docs.mongodb.org/manual/reference/mongo-shell/
- http://mongoosejs.com/docs/index.html
Get access to the govwiki mongo database.
Install Mongodb.
brew update
brew install mongodb
Connect to data.
mongo ds045521.mongolab.com:45521/govwiki -u GOVWIKI_MONGOLAB_USERNAME -p
Install Node.
brew install node
Initialize new node project.
cd /path/to/govwiki-client
npm init
```
Install Mongoose into the project folder.
```` sh
cd /path/to/govwiki-client
npm install mongoose --save
Add an index.js file to the project root directory, and run via node.
cd /path/to/govwiki-client
node index.js
Install server.
npm install -g nodemon
npm install # to install express?
Run server.
cd path/to/govwiki-client/
nodemon index.js
Next Steps:
Geocode all the govs.
- Create Mapquest API Key http://developer.mapquest.com/web/info/account/app-keys ... #fail