aboutsummaryrefslogtreecommitdiffstats
path: root/src/backend/ts/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/ts/index.ts')
-rw-r--r--src/backend/ts/index.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/backend/ts/index.ts b/src/backend/ts/index.ts
new file mode 100644
index 0000000..a6dab5b
--- /dev/null
+++ b/src/backend/ts/index.ts
@@ -0,0 +1,15 @@
+import express from 'express';
+import login from './api/login';
+import * as dotenv from 'dotenv';
+
+dotenv.config();
+const app = express();
+const PORT = 8000;
+
+app.use("/", express.static("./public"));
+
+app.get('/login', (req, res) => login(req, res));
+
+app.listen(PORT, () => {
+ console.log(`[server]: Server is running at https://localhost:${PORT}`);
+}); \ No newline at end of file