Express example


I remember seeing an Express example that does app.listen(3000 but I can’t find it anywhere now. Is there such thing? Where can I find it?

The closest thing I’ve found so far is from


const express = require('express')
const app = express()

app.get('/', (req, res) => res.send('Hello World!'))

app.listen(3000, () => console.log('Example app listening on port 3000!'))

But if I copy it to my notebook, How can I get an URL like


BTW, both the Express end point helper implemented, or the usage example is not working now.