-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
- install express
npm install express - install types
npm install --save-dev @types/express - try small demo
import express from 'express';
import { Request, Response } from 'express';
const app = express();
const port = 3000;
app.get('/', (req: Request, res: Response) => {
res.send('Hello TypeScript and Node.js!');
});
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
setupOperational StuffOperational Stuff
Projects
Status
Done