NodeJS & MongoDB – create simple API

Setup Project mkdir <projectdir>/helloworld cd helloworld npm init name: version: description: Hello World API entry point: server.js test command: git repository: keywords: author: John Dunning license: npm install –save express body-parser mongoose bluebird npm install -g nodemon atom . Create server.js Create Model open Atom create folders  app app/model app/model/person.js Start MongoDB mongod Start the …

NodeJS & MongoDB – create simple API Read More »