tianji/src/server/main.ts

14 lines
326 B
TypeScript
Raw Normal View History

2023-08-31 13:17:57 +00:00
import express from 'express';
import ViteExpress from 'vite-express';
const app = express();
app.get('/hello', (_, res) => {
res.send('Hello Vite + React + TypeScript!');
});
ViteExpress.listen(app, 3000, () => {
console.log('Server is listening on port 3000...');
console.log('Website: http://localhost:3000');
});