ere’s a brand new, revisited tutorial for Express.js 4, Node.js and MongoDB (Mongoskin) free-JSON RESTful API server.
Node.js and MongoDB REST API OverviewREST API Tests with Mocha and SuperagentNPM-ing Node.js Server DependenciesExpress.js 4.x Middleware CaveatExpress.js and MongoDB (Mongoskin) ImplementationRunning The Express.js 4 App and Testing MongoDB Data with MochaConclusion 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.
Via Jan Hesse, Ex FromTheLeft