From 7ca6c320bd1f74c9d70884c40eb1ec12e01821cf Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Fri, 23 Aug 2024 20:46:40 +0200 Subject: [PATCH] login --- idp/package-lock.json | 1 + idp/package.json | 1 + idp/src/main.ts | 4 +++- idp_client/src/app/app.routes.ts | 1 + idp_client/src/app/login/login.component.html | 2 +- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/idp/package-lock.json b/idp/package-lock.json index 51852aa..1a45654 100644 --- a/idp/package-lock.json +++ b/idp/package-lock.json @@ -20,6 +20,7 @@ "bcrypt": "^5.1.1", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", + "dotenv": "^16.4.5", "mysql2": "^3.11.0", "nestjs-form-data": "^1.9.91", "passport": "^0.7.0", diff --git a/idp/package.json b/idp/package.json index 3f0ee41..c14d054 100644 --- a/idp/package.json +++ b/idp/package.json @@ -31,6 +31,7 @@ "bcrypt": "^5.1.1", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", + "dotenv": "^16.4.5", "mysql2": "^3.11.0", "nestjs-form-data": "^1.9.91", "passport": "^0.7.0", diff --git a/idp/src/main.ts b/idp/src/main.ts index de7a6de..02951e7 100644 --- a/idp/src/main.ts +++ b/idp/src/main.ts @@ -17,6 +17,8 @@ async function bootstrap() { transform: true, // Transform is recomended configuration for avoind issues with arrays of files transformations }), ); - await app.listen(parseInt(process.env.PORT) || 5001); + const port = parseInt(process.env.PORT) || 5000; + await app.listen(port); + console.log(`Application is running on: ${await app.getUrl()}`); } bootstrap(); diff --git a/idp_client/src/app/app.routes.ts b/idp_client/src/app/app.routes.ts index ab00a9f..e234520 100644 --- a/idp_client/src/app/app.routes.ts +++ b/idp_client/src/app/app.routes.ts @@ -3,4 +3,5 @@ import { LoginComponent } from './login/login.component'; export const routes: Routes = [ { path: 'login', component: LoginComponent }, + { path: '', component: LoginComponent }, ]; diff --git a/idp_client/src/app/login/login.component.html b/idp_client/src/app/login/login.component.html index 15f60c2..9690b21 100644 --- a/idp_client/src/app/login/login.component.html +++ b/idp_client/src/app/login/login.component.html @@ -11,7 +11,7 @@ -