import express from 'express'; import {Request,Response} from 'express'; const app = express(); app.get('/',function(req:Request,res:Response){ res.end("Hello World"); }) const PORT = 8080; app.listen(PORT, () => { console.log(`Listening at http://localhost:${PORT}/`); });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter