2023-09-02 12:13:50 +00:00
|
|
|
import 'dotenv/config';
|
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');
|
|
|
|
});
|