Skip to content

A simple demo MVC API build with Node.js, Express.js, and MongoDB (Mongoose)

Notifications You must be signed in to change notification settings

cbroberg/node-mvc-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mvc-api

This sample repository is for demo purposes and my way of learning about Node.js, Express.js and MongoDB.

The basic idea is to build and MVC based API and learn about how Node.js, Express.js, MongoDB and Mongoose module works together.

Prerequisites in 6 easy steps

  1. Basic understanding of how Node.js, Express.js, and MongoDB.

  2. A running instance of MongoDB (in this case MacOS): Install MongoDB Community Edition on OS X

  3. Download Postman to test and work with our API - Postman Download

  4. Clone the repository node-mvc-api from Github or git clone https://github.com/cbroberg/node-mvc-api.git, and run npm install

  5. Open node-mvc-api in your preferred text editor (did anyone mention Atom), and run npm start

  6. Run mongod to launch the MongoDB daemon and you should be set to go!

New DB support

Added support and tested MongoDB on https://mlab.com/databases/odeum_api - new connection is in app.js and both the new and the old localhost connection is located in alternative_db.js

Check out the Mongoose documentation.

Releases

No releases published

Packages

No packages published