sample ExpressJS code
This commit is contained in:
7
src/app.ts
Normal file
7
src/app.ts
Normal 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}`);
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user