Express example


#1

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
http://expressjs.com/en/starter/hello-world.html

i.e.,

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 https://tobiria39l5l.runkit.sh/?


#2

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

TIA !


#3

I believe this is all working now.


#4

Oh, yeah, the Express example is working now.

As for the Express end point samples, I’ve completely forgot how to verify if they’re working or not now, but, anyway…

thanks