Test repository for potential new fsek backend
- .NET 6 (net6.0) w/ dotnet CLI
- C# 10
- PostgreSQL 14
The project first requries you to clone the code and restore NuGet packages (this is done automatically in Visual Studio). Then the database needs to be setup, we use a PostgreSQL database
- Install Visual Studio (not code, although it works with the linux instructions)
git clone https://github.com/fsek/HilbertWeb.git
- Open Solution
- Build -> Build Solution, it should automatically restore NuGet pacakages
- Debug -> Start Debugging
- Go to Tools > Nuget Package Manager > Package Manager Setting
- Go to Package sources
- Add new package source with name nuget.org (for example) and source https://api.nuget.org/v3/index.json
https://code.visualstudio.com/docs/languages/dotnet
- Install dotnet CLI
git clone https://github.com/fsek/HilbertWeb.git
- Open folder in VSCode
dotnet restore
dotnet run
- Download and install PostgreSQL 14
- Windows: https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql/
- macOS: https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql-macos/
- Linux: https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql-linux/
- When installed, set default password to dablord1337 (we will probably add this to a non-versioned file instead in future so you can set your own pass :))
- To create the schema you should be able to run
dotnet ef database update
in the directory HilbertWeb.BackendApp
- If you do not have
dotnet ef
installed you can install it globally by runningdotnet tool install --global dotnet-ef
Move Dto to other project
move auth to other project
- Create database model
- Create Api Controller
- Create DTO
- Profit