Merge unrelated histories
This commit is contained in:
1651
backend/package-lock.json
generated
Normal file
1651
backend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
backend/package.json
Normal file
7
backend/package.json
Normal 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
13
backend/src/index.ts
Normal 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
14
backend/tsconfig.json
Normal 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user