Create Project
Let's make our next cross platform project a success with Bit.Boilerplate.
dotnet new bit-bp --name MyFirstProject
Name
--name MyFirstProject
It is required to specify a name for your project.
Captcha
None
--captcha None
By setting this parameter to None, CAPTCHA won't be added to the project.
Pipeline
GitHub
--pipeline GitHub
Ensure a rapid and reliable deployment by utilizing a pipeline.
By selecting GitHub, CI/ CD pipelines will be set up using Github Actions.
Sample
None
--sample None
Windows
--windows true
App Center
--appCenter false
AppInsights
--appInsights false
SignalR
--signalr false
Note:
This setting does not affect the enabling or disabling of Blazor Server.
File Storage
Local
--filesStorage Local
The API project includes an Attachment Controller responsible for handling user images,
including resizing and saving them in the WebP format using FluentStorage
Local option stores files on local hard drive.
Local option stores files on local hard drive.
Offline Database
--offlineDb false
Warning: It is advisable to use this option only when necessary, as integrating Entity Framework Core can increase application size and potentially reduce startup performance.
Server Database
Sqlite
--database Sqlite
The API project requires an Entity Framework Core DbContext for tables such as ASP.NET Core Identity.
Supported options include SqlServer, PostgreSQL, MySQL, Cosmos, and Other. If you require a database not listed among the options, select Other. After project creation, you can add the desired database package and configure it in the AddDbContextPool method which is located in the Program.Services.cs file within the Server.Api project.
For the default Sqlite option, we'd recommend installing sqlite package for Visual Studio and Visual Studio Code.
Supported options include SqlServer, PostgreSQL, MySQL, Cosmos, and Other. If you require a database not listed among the options, select Other. After project creation, you can add the desired database package and configure it in the AddDbContextPool method which is located in the Program.Services.cs file within the Server.Api project.
For the default Sqlite option, we'd recommend installing sqlite package for Visual Studio and Visual Studio Code.
API
Integrated
--api Integrated
Easily debug and deploy Server.Web projects that serves restful API services, SSR, Blazor Server, Blazor Auto and pre-rendering.
Visual Studio
Note: In second window of create new project modal, make sure to check Place solution and project in the same directory checkbox.