diff options
| author | Maks Jopek <maksymilian.jopek@prym-soft.pl> | 2021-03-21 00:29:57 +0100 |
|---|---|---|
| committer | Maks Jopek <maksymilian.jopek@prym-soft.pl> | 2021-03-21 00:29:57 +0100 |
| commit | eee4ee32dd667ed6efd31ddcf8f64217b7e16b60 (patch) | |
| tree | 98af67398c5152d704547467922e9b51683b4d25 /src/backend/ts/index.ts | |
| parent | a03d9891a0bca30fe3384844c21f483f5fd1e440 (diff) | |
| download | fia-eee4ee32dd667ed6efd31ddcf8f64217b7e16b60.tar.gz fia-eee4ee32dd667ed6efd31ddcf8f64217b7e16b60.tar.zst fia-eee4ee32dd667ed6efd31ddcf8f64217b7e16b60.zip | |
Start files, and some basic tests
Diffstat (limited to 'src/backend/ts/index.ts')
| -rw-r--r-- | src/backend/ts/index.ts | 15 |
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 |
