This is a code challenge for Cognizant and this ptoject is a backend for https://github.com/olganos/SecondHandCarShop-Frontend repository.
These two repositories are parts of one Visual Studio 2022 Preview 3 solution.
To run:
- You should put frontend part under frontend folder inside the solution
- Restore packages for all .Net projects and do npm i for frontend
- Have installed PostgresSQL 13.0 or higher
- Check connection string in Backend/appsettings.json
- To init DB a) Set Backend as a startup project b) open nuget console and select DAL as default project b) run command "Update-Database createDB". It will create DB and populate tables accordingly createDB in Migration folder
- Right click on Solution and select Set Starup Progects
- Check multple and select Backend and fronted.
- Click Start button