Skip to content

Starter kit ​

The DotBlaze starter kit is a ready-to-customize ASP.NET Core application with Blade views, Tailwind CSS, and Alpine.js. It includes registration, login, password reset, email verification, a dashboard, profile settings, an admin users section, SQLite migrations, and tests.

Requirements ​

Create your application ​

Install the template from the starter kit and generate an app. The template renames the project, namespaces, solution, and tests to your app name.

sh
git clone https://github.com/dotblaze/starter-kit.git
dotnet new install ./starter-kit
dotnet new dotblaze-blade -n MyApp
cd MyApp

You can also use GitHub's Use this template button, or work directly in the clone (the project name then stays StarterKit).

Configure the environment ​

sh
cp .env.example .env
powershell
Copy-Item .env.example .env

Run it ​

sh
dotnet run -- migrate
npm ci
npm run build
dotnet run --urls http://localhost:5000

Open http://localhost:5000. The dashboard is at /dashboard. The default mailer is log, so verification and password reset links are written to the application log instead of being emailed.

Sample accounts ​

Seed demo users in the Development environment:

sh
ASPNETCORE_ENVIRONMENT=Development dotnet run -- db:seed
powershell
$env:ASPNETCORE_ENVIRONMENT = 'Development'
dotnet run -- db:seed
EmailPasswordRole
admin@example.compasswordAdmin
user@example.compasswordUser

WARNING

These accounts are for local demos only. Never seed them in production.

Run with Docker ​

No local .NET or Node.js? Use Docker Compose 2.24+:

sh
docker compose up --build -d
docker compose logs -f app
docker compose down

Optional: DotBlaze CLI ​

sh
dotnet tool install --global DotBlaze.Cli

From the app directory you can then run dotblaze migrate, dotblaze db:check, and dotblaze serve. The dotnet run -- commands work without it.

Next steps ​