From fb00f50adb81eaaaf90ca9c36fab12f930b712bb Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Tue, 24 Nov 2020 18:47:34 +0100 Subject: [PATCH] sample ExpressJS code --- src/app.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/app.ts diff --git a/src/app.ts b/src/app.ts new file mode 100644 index 0000000..0700824 --- /dev/null +++ b/src/app.ts @@ -0,0 +1,7 @@ +import express from 'express'; +const app = express(); +const PORT = 4010; +app.get('/', (req, res) => res.send('Express + TypeScript Server')); +app.listen(PORT, () => { + console.log(`⚡️[server]: Server is running at http://localhost:${PORT}`); +});