Express set up

PHOTO EMBED

Thu Aug 19 2021 17:51:17 GMT+0000 (Coordinated Universal Time)

Saved by @ExplodeMilk #typescript #express

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}/`);
});
content_copyCOPY