From 086b68c539c37eb21230e5e772e56170b089493d Mon Sep 17 00:00:00 2001 From: Egamorf Date: Wed, 9 Apr 2025 23:10:03 +0200 Subject: [PATCH] Add first miggration --- .gitea/workflows/build-pr.yaml | 4 +- .gitignore | 4 +- README.md | 11 +- src/GameIdeas/GameIdeas.Shared/Model/Game.cs | 2 +- .../Context/GameIdeasContext.cs | 14 +- .../GameIdeas.WebAPI/GameIdeas.WebAPI.csproj | 4 + .../20250409210640_InitialCreate.Designer.cs | 422 ++++++++++++++++++ .../20250409210640_InitialCreate.cs | 325 ++++++++++++++ .../GameIdeasContextModelSnapshot.cs | 419 +++++++++++++++++ .../Server/GameIdeas.WebAPI/Program.cs | 57 ++- 10 files changed, 1234 insertions(+), 28 deletions(-) create mode 100644 src/GameIdeas/Server/GameIdeas.WebAPI/Migrations/20250409210640_InitialCreate.Designer.cs create mode 100644 src/GameIdeas/Server/GameIdeas.WebAPI/Migrations/20250409210640_InitialCreate.cs create mode 100644 src/GameIdeas/Server/GameIdeas.WebAPI/Migrations/GameIdeasContextModelSnapshot.cs diff --git a/.gitea/workflows/build-pr.yaml b/.gitea/workflows/build-pr.yaml index 8699650..abfb2f3 100644 --- a/.gitea/workflows/build-pr.yaml +++ b/.gitea/workflows/build-pr.yaml @@ -1,7 +1,7 @@ name: Game Ideas build for PR on: pull_request: - types: [ opened, edited, closed, reopened, synchronize ] + types: [ opened, edited, reopened, synchronize ] branches: - 'feature/**' - main @@ -22,4 +22,4 @@ jobs: run: dotnet build ./src/GameIdeas/Client/GameIdeas.BlazorApp/GameIdeas.BlazorApp.csproj - name: Build API App - run: dotnet build ./src/GameIdeas/Server/GameIdeas.WebAPI/GameIdeas.WebAPI.csproj \ No newline at end of file + run: dotnet build ./src/GameIdeas/Server/GameIdeas.WebAPI/GameIdeas.WebAPI.csproj \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2e36d2a..54842ee 100644 --- a/.gitignore +++ b/.gitignore @@ -436,4 +436,6 @@ FodyWeavers.xsd .history .ionide -# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode + +.env \ No newline at end of file diff --git a/README.md b/README.md index cee14ad..9170bd2 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Store your favorite games, intelligent game add, store game files and data, mana ## Services -| project | Port | Technos | Base de données | +| Project | Port | Technos | Base de données | | ------------- | --------- | --------------- | --------------- | | WebApp | 5172,7060 | C# (Blazor) | | | API | 8000 | C# (ASP.NET) | PostgreSQL | @@ -29,6 +29,15 @@ Store your favorite games, intelligent game add, store game files and data, mana └── GameIdeas.Shared ``` +## Environment variables + +| Name | Value type | +| --- | --- | +| DB_HOST | Address IP or hostname of the database | +| DB_USERNAME | Username for the database | +| DB_PASSWORD | Plain password for the database | +| DB_DATABASE | Name of the database | +