ere’s a brand new, revisited tutorial for Express.js 4, Node.js and MongoDB (Mongoskin) free-JSON RESTful API server.
Contents:
- Node.js and MongoDB REST API Overview
- REST API Tests with Mocha and Superagent
- NPM-ing Node.js Server Dependencies
- Express.js 4.x Middleware Caveat
- Express.js and MongoDB (Mongoskin) Implementation
- Running The Express.js 4 App and Testing MongoDB Data with Mocha
- Conclusion and Further Express.js and Node.js Reading
This Node.js, Express.js and MongoDB (Mongoskin) tutorial will walk you through writing the test using the Mocha and Super Agent libraries. This is needed for a test-driven development building of a Node.js free JSON REST API server.
The server application itself will utilize Express.js 4.x framework and Mongoskin library for MongoDB. In this REST API server, we’ll perform create, read, update and delete (CRUD) operations and harness Express.js middleware concept with app.param() and app.use() methods.