This commit is contained in:
fs committed 2024-05-04 02:13:39 +02:00
1 parent 08764ac41e
commit 111d7e8ee5
26 files changed
+591 -71

No files matched your search

File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File diff suppressed because it is too large. Load diff
+5 -1
View File
@@ -23,9 +23,13 @@
"@angular/platform-server": "^17.3.0",
"@angular/router": "^17.3.0",
"@angular/ssr": "^17.3.6",
"dotenv": "^16.4.5",
"express": "^4.18.2",
"mysql": "^2.18.1",
"reflect-metadata": "^0.2.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"typeorm": "^0.3.20",
"zone.js": "~0.14.3"
},
"devDependencies": {
@@ -34,7 +38,7 @@
"@angular/compiler-cli": "^17.3.0",
"@types/express": "^4.17.17",
"@types/jasmine": "~5.1.0",
"@types/node": "^18.18.0",
"@types/node": "^18.19.31",
"jasmine-core": "~5.1.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
+12 -1
View File
@@ -1,10 +1,17 @@
import { APP_BASE_HREF } from '@angular/common';
import { CommonEngine } from '@angular/ssr';
import { config } from 'dotenv';
import express from 'express';
import { fileURLToPath } from 'node:url';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import "reflect-metadata";
import { AppDataSource } from './db';
import bootstrap from './src/main.server';
config()
// The Express app is exported so that it can be used by serverless Functions.
export function app(): express.Express {
const server = express();
@@ -48,9 +55,13 @@ function run(): void {
// Start up the Node server
const server = app();
AppDataSource.initialize()
.then(() => {
server.listen(port, () => {
console.log(`Node Express server listening on http://localhost:${port}`);
});
})
.catch(error => console.log(error))
}
run();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2 -1
View File
@@ -12,6 +12,7 @@
"esModuleInterop": true,
"sourceMap": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
@@ -21,7 +22,7 @@
"lib": [
"ES2022",
"dom"
]
],
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
File renamed without changes.