Skip to content

fsek/HilbertWeb

Repository files navigation

HilbertWeb

Test repository for potential new fsek backend

Required Versions

  • .NET 6 (net6.0) w/ dotnet CLI
  • C# 10
  • PostgreSQL 14

Setup

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

Setup Windows/macOS

  1. Install Visual Studio (not code, although it works with the linux instructions)
  2. git clone https://github.com/fsek/HilbertWeb.git
  3. Open Solution
  4. Build -> Build Solution, it should automatically restore NuGet pacakages
  5. Debug -> Start Debugging

"Unable to find package" when building solution

  1. Go to Tools > Nuget Package Manager > Package Manager Setting
  2. Go to Package sources
  3. Add new package source with name nuget.org (for example) and source https://api.nuget.org/v3/index.json

Setup Linux

https://code.visualstudio.com/docs/languages/dotnet

  1. Install dotnet CLI
  2. git clone https://github.com/fsek/HilbertWeb.git
  3. Open folder in VSCode
  4. dotnet restore
  5. dotnet run

Setup database

  1. Download and install PostgreSQL 14
  1. 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 :))
  2. 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 running dotnet tool install --global dotnet-ef

TODO, this shouldnt be here

Move Dto to other project

move auth to other project

Make new API Endpoint

  1. Create database model
  2. Create Api Controller
  3. Create DTO
  4. Profit

Releases

No releases published

Packages

No packages published

Languages