By Jeremy Banka
- ๐ต C# / .NET 5 Framework
- ๐๏ธ ASP.NET Core Server
- ๐ Entity Framework Core
- ๐งฎ MySQL Database
- ๐ช Razor Templating
- ๐ SCSS to CSS via Ritwick's Live Sass Compiler
- ๐ ๏ธ Tooling: Omnisharp
๐ ฐ๏ธ Font: Palatino by Hermann Zapf (PBUH)
This is an exercise in implementing user authentication and a simple authorization protocol using Microsoft AspNetCore.
-
Get the source code:
$ git clone https://github.com/jeremybanka/SweetSavory.Solution
-
Set up necessary database schema
- Install Entity Framework CLI:
$ dotnet tool install --global dotnet-ef
- Build your database: in
SweetSavory/
, rundotnet ef database update
- Install Entity Framework CLI:
-
Add
appsettings.json
inSweetSavory/
and paste in the following text:{ "ConnectionStrings": { "DefaultConnection": "Server=localhost;Port=3306;database=sweet_savory;uid=root;pwd=************;" } }
except, instead of
************
put your password for MySQL. -
Compile and run the app as you save changes:
$ dotnet watch run
inSweetSavory/
(This command will also install necessary dependencies.)
- none identified
Gnu Public License ^3.0
hello at jeremybanka dot com