1.0.1 • Published 5 months ago
express-mongodb-template v1.0.1
express-mongodb-template
Quickly kickstart your Express.js project with MongoDB integration. This lightweight starter includes a pre-configured Express server and a simple MongoDB connection setup, allowing you to focus on building your application.
Installation
Install my-project with npm
npm install express-mongodb-template
Usage/Examples
const expressApp = require('express-mongodb-template');
const PORT = 3000;
const MONGODB_URL = 'your-mongodb-uri';
// Connect to MongoDB and get the connection object
const dbConnection = expressApp.connect(MONGODB_URL);
// Start the Express server
expressApp.start(PORT);