This repostitory consists of project for following aricles in my blog (originally written for .NET Core 3.1 but packages are updated to match .NET 5.0)
- .NET Core 3.0 (Preview 4) Web API Authentication from Scratch (Part 1): Up and Running.
- .NET Core 3.0 (Preview 4) Web API Authentication from Scratch (Part 2): Password Hashing.
- .NET Core 3.0 (Preview 4) Web API Authentication from Scratch (Part 3): Token Authentication
- Download / Clone this repository.
- Install latest .NET
- Create new database
MyDatabase
in SQL Server. - Open Visual Studio Code in
WebApiCore50
folder. - Open integrated terminal using Ctrl Shift `
- Execute command
dotnet restore
in the terminal. - Execute command
dotnet tool update --global dotnet-ef --version 5.0.0
in the terminal to update Entity Framework Core .NET Command-line Tools. - Execute command
dotnet ef database update
in the terminal. (to update the database using migrations) - Execute command
dotnet watch run
in the terminal.