a read me to setup node application
-
install mongodb from https://www.mongodb.org/downloads
-
Install Postman - REST Client
-
at the termial:
-
$ mkdir nameofproject
-
$ cd nameofproject
-
$ touch package.json
-
$ nano package.json
- add
{ "name": "node-angular-api", "version": "1.0.0", "main": "server.js", "dependencies": { "express": "~4.0.0", "mongoose": "~3.6.13" } }
- save
- $ npm install
-
https://github.com/palletorsson/node_instruct/blob/master/static/public/index.html
-
start and test static server.
-
// PACKAGE . mongoose (set )
Angular : create a module, create a controller, and define functions
- Start db cd in to mongo dir bin * $ ./mongod