This project complements my blog post: https://gldraphael.com/blog/getting-started-with-identity-in-asp-net-core/
- Install Visual Studio or any text editor of your choice like VS Code
- Install MySql and create a new database (you can also use postgres or SQL Server etc; refer to my blog post or Microsoft Docs)
- Clone this repo
- Open up the solution (directory) in VS / your text editor
- Rename
Web/appsettings.Development.example.json
toappsettings.Development.json
- Update the
ConnectionStrings
with the correct parameters. (If you're not using MySql replace it with an appropriate connection string.) - If you don't use MySql, you'll need to regenerate the Migrations folder.
- Run the migrations using
dotnet ef database update
(from the Web project directory).
F5 to Debug
Cmd + Return to debug
cd Web
ASPNETCORE_ENVIRONMENT=Development dotnet run
# Now browse to localhost:5000