- Download project
- Run
dotnet restore
- Run
dotnet run
- Navigate to
http://localhost:5000/swagger/
to view Swagger Documentation
You can run the database migrations via Visual Studio in the powershell thingy running Update-Database
. It doesn't work in vanilla powershell for some reason idk.
See Running Migrations :)
dotnet tool install --global dotnet-ef
to install the ef thingydotnet ef migrations add [name]
dotnet ef database update
Run the following
dotnet tool install --global dotnet-ef
dotnet tool install --global dotnet-aspnet-codegenerator
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet add package Microsoft.EntityFrameworkCore.SQLite
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
then
dotnet aspnet-codegenerator controller -name [ControllerClass] -async -api -m [ModelClass] -dc [ContextClass] -outDir Controllers
- [] Add ReactJS client
- [] Add authorization
- [] Fix DB relationships (wtf)
- [] Make code good lmao
{
"name": "Phantom",
"description": "A phantom ghost can possess the living, and most commonly summoned through an Ouija Board. It also includes fear into those around it.",
"strengths": "If you look at a phantom directly your sanity will drop faster.",
"weaknesses": "You can take a picture of the phantom to make it disappear.",
"evidenceIds": [
1,2,3
]
}