feat: establish backend foundation

This commit is contained in:
2026-08-12 23:04:21 +03:00
parent f8dcfb71c1
commit ab21426478
24 changed files with 2313 additions and 382 deletions
+2
View File
@@ -0,0 +1,2 @@
process.env.DATABASE_URL = 'file:/tmp/wealth-ledger-e2e.db';
process.env.FRONTEND_ORIGIN = 'http://localhost:5173';
+4
View File
@@ -2,8 +2,12 @@
"moduleFileExtensions": ["js", "json", "ts"],
"rootDir": ".",
"testEnvironment": "node",
"setupFiles": ["<rootDir>/e2e-env.cjs"],
"testRegex": ".e2e-spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
}
}
+8
View File
@@ -0,0 +1,8 @@
const assert = require('node:assert/strict');
const { existsSync, readFileSync } = require('node:fs');
const packageJson = JSON.parse(readFileSync('package.json', 'utf8'));
assert.equal(packageJson.scripts['start:prod'], 'node dist/src/main.js');
assert.ok(existsSync('dist/src/main.js'));
assert.doesNotThrow(() => require('../dist/generated/prisma/client.js'));