sample ExpressJS code

This commit is contained in:
Philipp Dormann 2020-11-24 18:47:34 +01:00
parent 4ef161434c
commit fb00f50adb
1 changed files with 7 additions and 0 deletions

7
src/app.ts Normal file
View File

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