MCPcopy Create free account
hub / github.com/codemistic/Web-Development / main

Function main

Plan your Day!/app.js:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16main().catch(err => console.log(err));
17
18async function main() {
19 await mongoose.connect('mongodb://localhost:27017/todolistDB');
20}
21var db = mongoose.connection;
22db.on('error', console.error.bind(console, 'connection error: '));
23db.on('open', function () {

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected