Tried to convert server-node to TS, there are still some issues

This commit is contained in:
Saud Fatayerji
2023-11-10 23:41:31 +03:00
parent 7b702734f3
commit 458e9ed75b
10 changed files with 728 additions and 1219 deletions

12
server-node/index.ts Normal file
View File

@@ -0,0 +1,12 @@
import express from 'express';
const app = express();
const PORT = 8000;
// server-node: backend api
import api from './src/routes/api/api-controller';
app.use("/api/", api);
// serve
app.listen(PORT, () => {
console.log(`http://localhost:${PORT}`);
});