https://github.com/nandubit/mongoosemongodbconnection
This repository consists a simple way to establish connection to MongoDB database using mongoose.
https://github.com/nandubit/mongoosemongodbconnection
Last synced: 11 months ago
JSON representation
This repository consists a simple way to establish connection to MongoDB database using mongoose.
- Host: GitHub
- URL: https://github.com/nandubit/mongoosemongodbconnection
- Owner: NanduBit
- Created: 2023-05-16T10:00:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-29T17:29:15.000Z (11 months ago)
- Last Synced: 2025-06-29T18:28:50.862Z (11 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MongooseMongoDBConnection
This repository consists a simple way to establish connection to MongoDB database using mongoose.
# Seting Up
Type `git clone NanduWasTaken/MongooseMongoDBConnection.git` into the terminal.
# Single Step
Go to [MongoDB](https://www.mongodb.com/) website and make a account and create your own database.
Locate the MongoDB URI => Connect>Drivers

(the uri will be different on yours)
Now Replace the "Super Secret MongoDB URI Here" with your actual MongoDB URI
```
mongoose.connect('Super Secret MongoDB URI Here', {
useNewUrlParser: true,
useUnifiedTopology: true
});
```
# Running
Type `node index.js` to your terminal.