Skip to content
/ mvc Public template

.NET 8 MVC Identity Auth App with Tailwind

Notifications You must be signed in to change notification settings

NetCoreTemplates/mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

20f80ca · Apr 25, 2025
Jan 1, 2025
Nov 20, 2024
Mar 27, 2023
Sep 12, 2024
Sep 12, 2024
Nov 17, 2023
Apr 25, 2025
Nov 26, 2024
Nov 16, 2023
Jan 20, 2023
Nov 22, 2023

Repository files navigation

mvc

.NET 8.0 MVC Website integrated with ServiceStack using ASP.NET Identity Auth

Login

Browse source code and install with the web dotnet tool:

$ dotnet tool install -g x

$ x new mvc ProjectName

Alternatively write new project files directly into an empty repository, using the Directory Name as the ProjectName:

$ git clone https://github.com/<User>/<ProjectName>.git
$ cd <ProjectName>
$ x new mvc

Database Setup

To create the User and Auth tables change the "DefaultConnection" connection string in appsettings.json then run the ef .NET Core tool:

$ dotnet ef migrations add CreateIdentitySchema
$ dotnet ef database update

If needed, you can re-create your DB schema after modifying your custom ApplicationUser class with additional info you want to store on each user, by deleting the __EFMigrationHistory and all AspNet* tables, deleting the Migrations folder in your host projects and re-running the above commands.

OAuth Setup

Replace the oauth.* App settings with your own in appsettings.Development.json for local development and appsettings.json for production deployments.