Mongodb Cloud Database Integration and CRUD Operation
Hello developers, today we will learn crud operation with Mongodb.
First of all open a folder with Visual Studio Code and open terminal write command,
npm init
complete everything just pressing enter button, I added author option with my name you can do it too and continue pressing enter button, it will ask (yes) then again press enter. You can see package.json has been created.
We need to install express and mongo db so now you should add this command,
npm install express mongodb
to run server using nodemon we also install it using command,
npm install — save-dev nodemon
To use cors we should install this too,
npm install — save cors
now create mongodb atlas account.