Last active
May 25, 2020 14:01
-
-
Save anhquoc1104/521e98d802a1fde7cba11833989b0194 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Create new account in Mongo Atlas | |
### New Cluster | |
### Databases Access : New User and role user | |
### Network Access : Add ip | |
### Connect with appNodeJS using mongoose: | |
const mongoose = require('mongoose'); | |
const url = "mongodb+srv://<username>:<password>@<nameCluster>-ie3x8.gcp.mongodb.net/<DBname>?retryWrites=true&w=majority" | |
mongoose.connect(url, {useNewUrlParser: true, useUnifiedTopology: true}); | |
...Using... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment