A full-stack Blog post web application using MongoDb, Node with Expressjs
body-parserexpressexpress-sanitizerejsdotenvmongoosemethod-override
Install Dependencies
-> npm install
OR
-> npm iTo Start the Development server :
npm run devTo Start the Production server :
npm run start- Make sure latest version of dotenv Module is installed.
- Create a .env file.
- For setting up a local MongoDb DataBase
- Mongo must be locally installed on your system.
- Add to .env,
- localDBURL='
mongodb://localhost:27017/Blogapp'
- localDBURL='
- For setting up a Cloud Database Using Atlas, Add to .env
- cloudDBURL='
mongodb+srv://<EnterMongoDBAtlas_UserName>:<EnterMongoDBAtlas_Password>@cluster0.c1tnc.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'
- cloudDBURL='