Last active
March 1, 2021 18:20
-
-
Save markninja96/ef158ceef1a776deb345a902002a6a7f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| mongoose | |
| .connect( | |
| "<database connection string>", | |
| { useNewUrlParser: true, useUnifiedTopology: true } | |
| ) | |
| .then((result) => { | |
| server.listen(port); | |
| server.on("listening", onListening); | |
| }) | |
| .catch((err) => { | |
| server.on("error", onError); | |
| console.log(err); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment