Merge unrelated histories

This commit is contained in:
2024-02-09 12:51:42 +01:00
parent 04077edebe
commit 77e2bfd1e1
38 changed files with 33681 additions and 0 deletions

1651
backend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

7
backend/package.json Normal file
View File

@@ -0,0 +1,7 @@
{
"scripts": {
"start": "ts-node src/index.ts",
"build": "tsc",
"dev": "nodemon src/index.ts"
}
}

13
backend/src/index.ts Normal file
View File

@@ -0,0 +1,13 @@
// Standard-Einstiegspunkt für die App
import express from 'express';
import dotenv from 'dotenv';
dotenv.config();
const app = express();
const NODE_ENV = process.env.NODE_ENV || 'dev';
const Port = NODE_ENV === "production" ? parseInt(process.env.PORT || '') || 507 : 2210;
app.listen(Port, () => {
console.log(`Server läuft auf Port ${Port}`);
});

14
backend/tsconfig.json Normal file
View File

@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}