This repository contains the sample application for the MongoDB and Express.js NodeJs App tutorial.
Start learning from here: MongoDB University
- You can follow the Getting Started with Atlas guide, to learn how to create a free Atlas account, create your first cluster and get your Connection String to the database.
Then, set the Atlas URI connection parameter in
server/config.env
to your Connection String:
ATLAS_URI=mongodb+srv://<username>:<password>@sandbox.jadwj.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
- Start the Express server:
cd server
npm install
npm install -g nodemon
nodemon server
'we are using yarn instead of npm"
Use at your own risk; not a supported MongoDB product
- Node 4.x or greater version More Information
- Install mongodb driver npm install monodb
- check instalation npm list mongodb More Information
-
- Mongodb Confile
-
- Finish on Mongodb
-
- Rest apis