cd src/CourseManagement.Infrastructure
dotnet ef migrations add <MigrationName> --startup-project ../CourseManagement.API -o ./Database/Migrations/ --context ApplicationDbContext
dotnet ef database update --startup-project ../CourseManagement.API --context ApplicationDbContext
- Change the directory to the root of the project
- Run the following command
docker compose -f docker-compose.yml -f docker-compose.override.yml up -d
- Run the following command
docker compose -f docker-compose.yml -f docker-compose.override.yml down
Visit the following link address in your browser http://localhost:8082
-
dotnet test
Important: For functional tests Docker must be installed and running. It uses TestContainers to run the tests which requires Docker to be running. Ref: https://testcontainers.com/
Visit the following link address in your browser http://localhost:8080/swagger