Follow these steps to get started with your first mongoDB
- npm init
- npm install mongoose
- npm install dotenv
- create config.env file and declare your database string (example: DATABASE=mongodb+srv://abc:abc1234@cluster0.123abc.mongodb.net/test?retryWrites=true&w=majority)
- And follow the steps in the index.js file
- 'npm run start' to run the function.