initial, express-typescript config, react-vite created
This commit is contained in:
11
server/index.ts
Normal file
11
server/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import express, { Request, Response } from 'express';
|
||||
const app = express();
|
||||
const port = 8080;
|
||||
|
||||
app.get('/', (req: Request, res: Response) => {
|
||||
res.send('express');
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log('listening on ' + port);
|
||||
})
|
||||
Reference in New Issue
Block a user