This is the backend REST API for the weekplanner branch of the GIRAF project. The weekplanner API uses Microsoft's .NET 8 architecture with a modern MinimalAPI setup. It also includes a containerized PostgreSql database.
-
Download and install .NET 8 from:
-
Install Microsoft Entity Framework:
dotnet tool install --global dotnet-ef
-
Download and install Docker Desktop from:
-
Launch the API from the weekplanner-api directory:
docker compose up
The production environment uses a different build process from the development environment. To run the production environment, call:
docker compose -f docker-compose.prod.yml up --build
If you make changes to entities or DTOs, make sure to update the database:
- Add a new migration
dotnet ef migrations add Your_Migration_Name_Here --output-dir Data\Migrations
- Update the database
dotnet ef database update