tejashreeSalvi / Mongodb-connect

Connect to Mongodb using Mongoose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mongodb-connect

Steps to run:

1. Clone the repository:

  • git clone https://github.com/tejashreeSalvi/Mongodb-connect.git

2. Run Command:

  • npm i
  • This will download dependencies required to run the code.

3. How to Setup to MongoDB Atlas

  • Create a account on MongoDB Atlas
  • Create a Cluster
  • After Cluster is created In Data Storage, Go to Clusters -> Click on connect
  • Choose the Connection Method: Click on Connect your application
  • Driver : NodeJS and copy the link and paste in app.js file
  • CONNECTION_STRING replace with mongoDB Link
  • In terminal: Run npm start

About

Connect to Mongodb using Mongoose


Languages

Language:JavaScript 100.0%