Created
February 18, 2020 17:51
-
-
Save levenokk/21146227a3f7843c80dc3020d8efcd03 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
MongoClient.connect('mongodb://localhost:27017', { useUnifiedTopology: true }, function (err, client) { | |
if (err) { | |
return console.log(err); | |
} | |
db = client.db('artists'); | |
app.listen(3012, function () { | |
console.log("API app started"); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment