Add output about opening application

This commit is contained in:
Christian Bundy 2019-06-24 12:28:41 -07:00
parent 6a3d82d813
commit 3c236cc1db
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237

View File

@ -88,4 +88,8 @@ async function home (ctx) {
await ctx.render('home', { whoami, msgs, userName })
}
if (!module.parent) app.listen(3000)
if (!module.parent) {
const port = 3000
app.listen(port)
console.log(`open your browser to http://localhost:${port}/`)
}