This repository contains a simple .NET 6 API with CRUD operations.
To keep track of what I have done and something to refer back to.
NOTE: This project requires .NET 6 SDK or higher to run.
Open your terminal at the root of the repository and run:
dotnet run --project ./Superhero.Api/Superhero.Api.csproj
Once you see this in your terminal:
You can now access the api here: https://localhost:7073/swagger/index.html
Using Docker
TODO:
- ASP.NET Core Identity
- JWT Authentication
- Entity Framework Core
- FluentValidation
- Entity Framework Core Fluent API
- xUnit
- FluentAssertion
- FakeItEasy
- Swagger
- Docker
- Github Actions -- TODO
Once you run the project, you will notice in the terminal that it also runs the migrations as well as our initial data.
You can now test the application using the default user:
Username | Password |
---|---|
admin | Admin123* |
Remember to authenticate before accessing other endpoint.