Templates
A template is a whole app to start from. izzy new creates the app in a new folder, with the name
and options you give it. To browse the templates, see Templates, where each
one has a picture and its options.
Starters and kits
- A starter is an app's shell: the layout, the theme, a home page, and account pages when you ask for them. Use one when you'll build the pages yourself.
- A kit is a working app built on a starter, with its pages, data and sample records. Use one when your app is close to it, such as a CRM.
Create an app
Run izzy new with the kind, the template's name, and a name for your app:
izzy new starter sidebar -n MyAppizzy new kit crm -n MyApp
izzy creates a folder named after the app. To put the app somewhere else, add -o with the folder.
Then run the app:
cd MyApp
dotnet run
Every app has a README.md that says how to run it, where things are and how to add to it. An app
with accounts says how to log in: the CRM kit's lists the sample team it makes and their password.
To list the templates, run izzy list starter or izzy list kit.
Options
Each template has options for its render modes, accounts and theme. Add them to the command:
izzy new starter topnav -n Admin --auth Individual --preset Compact --brand teal
To list a template's options, run izzy describe with its kind and id, such as
izzy describe starter topnav. A kit decides some of its starter's options for you, so it lists fewer.
The starters' options are explained in Create an app.
See the files first
To list the files a template would create without creating them, add --dry-run. For the same
list as data, add --json.
If the folder already has a file with different content, izzy stops and writes nothing. To compare
the two, add --diff. To replace the file, add --overwrite.
With dotnet new
The IzzyBlazor App starter is also a dotnet new template, with the same options:
dotnet new starter-blazor -n MyApp
To install the templates package, see Create an app.
The other starters and the kits are free with an IzzyBlazor account, and come from izzy new
after izzy login.
Their code is yours to use under the template license.
Next steps
- Blocks: add a hero, pricing or a sign-up form to a page.
- Pages for a Model: create a page to display, add, edit and delete a model's records.