Developed for the UrFu Project-Practice 2024 (5th semester)
- Clone the repository:
git clone https://github.com/AnTaif/trainer-journal-backend
- Navigate to the project directory:
cd trainer-journal-backend
- Create .env file by following .env.example
- Build and run the application using Docker Compose:
docker-compose up -d
Once the api is running, you can access it at http://localhost:8080 or swagger docs at http://localhost:8080/swagger To stop the application and remove the containers, run:
docker-compose down
- Navigate to the Infrastructure project:
cd src/TrainerJournal.Infrastructure
- Make changes to db models and add migration:
dotnet ef migrations add <Name> -s ../TrainerJournal.API
- Update database:
dotnet ef database update -s ../TrainerJournal.API