Initial Project Setup

This commit is contained in:
tw-blue
2025-11-01 16:16:02 +01:00
commit 3bbd73d625
28 changed files with 6818 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"name": "api",
"version": "1.0.0",
"scripts": {
"start": "node dist/index.js",
"build": "tsc -p ."
},
"type": "module",
"packageManager": "pnpm@10.20.0",
"private": true,
"devDependencies": {
"@types/express": "^5.0.5",
"@types/node": "^24.9.2",
"typescript": "~5.9.3"
},
"dependencies": {
"express": "^5.1.0"
}
}
+12
View File
@@ -0,0 +1,12 @@
import express from 'express';
const app = express();
const port = 3000;
app.get('/', (_, res) => {
res.send('Hello World!');
});
app.listen(port, () => {
console.log(`Server is running at http://localhost:${port}`);
});
+45
View File
@@ -0,0 +1,45 @@
{
// Visit https://aka.ms/tsconfig to read more about this file
"compilerOptions": {
// File Layout
"rootDir": "./src",
"outDir": "./dist",
// Environment Settings
// See also https://aka.ms/tsconfig/module
"module": "nodenext",
"target": "esnext",
// "types": [],
// For nodejs:
"lib": ["esnext"],
"types": ["node"],
// and npm install -D @types/node
// Other Outputs
"sourceMap": true,
"declaration": true,
"declarationMap": true,
// Stricter Typechecking Options
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
// Style Options
"noImplicitReturns": true,
"noImplicitOverride": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noPropertyAccessFromIndexSignature": true,
// Recommended Options
"strict": true,
"jsx": "react-jsx",
"verbatimModuleSyntax": true,
"isolatedModules": true,
"noUncheckedSideEffectImports": true,
"moduleDetection": "force",
"skipLibCheck": true,
},
"files": ["./src/index.ts"],
}