Advanced node & express: database connection should be present

Hello, I’m at step 5 of this course (link) and my first test keeps failing: “database connection should be present”.
That’s a pretty obvious hint but I can’t see what I’m doing wrong and the course only really asks to copy their example, which I think I did, so there isn’t much info there eiter.
This is my very short project so far: https://repl.it/@koffiekan/advancednode#server.js

Hello there,

It appears there is a syntax error in your code:

app.post('/login',)

This is not in the lesson code.

All the test looks for is this line on your home page:

Connected to Database

Hope this helps

2 Likes