A REST API server for MongoDB using Node.js, Express, and the native MongoDB driver (version 0.10.14). Provides a simple, unsecured RESTful interface for rapid prototyping without building a backend. Offers CRUD operations via HTTP, optional token-based authentication (prototype), and configurable connection pooling. Maintained sporadically with limited security; explicitly not suitable for production use. Last updated in 2016, with no recent releases.
npm install mongodb-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global installation, server start, and basic REST operations (insert, read) using curl commands.
Use only on localhost or in isolated development environments. Do not deploy in production.
Consider migrating to a maintained alternative like 'restify' or 'keystone'.
Use `require('mongodb-rest/server.js')` not `require('mongodb-rest')`.Do not rely on built-in auth; implement your own middleware if needed.
Install globally: npm install -g mongodb-rest. Or use local install: npm install mongodb-rest && require('./node_modules/mongodb-rest/server.js')Use const mRest = require('mongodb-rest/server.js'); mRest.startServer();Start MongoDB: mongod. Check config db string (default mongodb://localhost:27017).