chore(api): Initialize backend

Simple Express server with TypeScript
This commit is contained in:
Tibo De Peuter 2025-02-19 18:05:42 +01:00
parent 83a505ffdb
commit 81bad9d71a
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
5 changed files with 3499 additions and 0 deletions

15
backend/src/app.ts Normal file
View file

@ -0,0 +1,15 @@
import express, {Express, Request, Response} from 'express';
const app: Express = express();
const port: string | number = process.env.PORT || 3000;
app.get('/', (_, res: Response) => {
res.json({
message: 'Hello Dwengo!'
});
});
app.listen(port, () => {
console.log(`Server is running at http://localhost:${port}`);
})