Start setting up a Node Environment on your machine
and make the folders as :-
- db
- api
- models
- utils
- app.js or index.js
Inside the utils folder , add a file config.js and add mongoDB cloud link , as :-
const config = {
dbConfig : "mongodb+srv://<username>:<password>@cluster0-sicof.mongodb.net/<databaseName>?retryWrites=true&w=majority"
}
module.exports=config;
Start setting up a Node Environment on your machine
and make the folders as :-
Inside the utils folder , add a file config.js and add mongoDB cloud link , as :-