Skip to content

REST API built with Express.js, Mongoskin and Mocha

Notifications You must be signed in to change notification settings

scramjs/rest-api-express

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of the original project, rewritten with Express Web Components

Usage

bower install
npm install
npm run dev // development without a debug browser window
npm run-dev-window // development with a debug browser window (recommended)

The instructions below are for the original repository

Node.js REST API Example with MongoDB, Mongoskin, Express 3 and 4

Express.js 4.x

master branch

Full tutorial: http://webapplog.com/express-js-4-node-js-and-mongodb-rest-api-tutorial/

Brief instructions:

$ git clone https://github.com/azat-co/rest-api-express.git
$ cd rest-api-express
$ npm install
$ node express.js

In a new terminal window:

$ mocha express.test.js

Or, if you don't have mocha installed globally:

$ ./node_modules/mocha/bin/mocha express.test.js

You can use package.json commands:

$ npm start
$ npm test

Express.js 3.x

express3 branch

Full tutorial: http://webapplog.com/tutorial-node-js-and-mongodb-json-rest-api-server-with-mongoskin-and-express-js/

Brief instructions:

$ git clone https://github.com/azat-co/rest-api-express.git
$ cd rest-api-express
$ git checkout express3
$ npm install
$ node express.js

in a new window

$ mocha express.test.js

or (if you don't have mocha installed globally):

$ ./node_modules/mocha/bin/mocha express.test.js

About

REST API built with Express.js, Mongoskin and Mocha

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 39.0%
  • HTML 30.6%
  • TypeScript 30.4%