Backend for OLX Faked project for IT Step Diploma
To deploy the application we need next things to be installed:
- Docker Desktop
- Visual Studio 2019 or hihgher
- .NET 7
First we need to create internal docker network by typing the command:
docker network create olx_relation_network
Now we need to build the image:
docker compose build
We can get the docker environment up typing in the command terminal from the solution folder:
docker compose up -d
From the Visual Studio the same thing can be done simply by running the project.
After REST API environment is up, we can start to create the Database via EF Migrations.
cd OLXFakedBackend
dotnet ef migrations add <migration name>
dotnet ef database update
After migration is done, comment line 10 in appsettings.json and comment line 11.