Create Project
Let's make our next web project a success with Bit.Boilerplate.
CLI
Create a new project using dotnet new command:
dotnet new bit-bp
Note: bit project templates accept the following parameters:
Examples:
- --name (default is current folder name)
- --api defaults to true: '--api true' adds support for aspnetcore identity, webapi, odata, ef core and fluent email.
- --database default to SqlServer among following options: SqlServer Sqlite, Other
- --captcha default to reCaptcha among following options: reCaptcha None
- --serverUrl The backend server url. You can change its value later if needed.
- --pipeline default to GitHub among the following options: GitHub, Azure (AzureDevOps pipelines), None
- --sample default to None among the following options: Admin, Todo, None
- --offlineDb defaults to false: '--offlineDb true' adds sqlite database support to the client mobile, web and desktop apps
- --windows default to false: '--windows true' adds support for exe output for windows 7+
- --appInsights defaults to false: '--appInsights true' adds support for Azure application insights in all clients (Android, iOS, Windows, macOS, Web)
- --appCenter defaults to false: '--appCenter true' adds support for Visual Studio AppCenter in hybrid clients (Android, iOS, Windows, macOS)
1- Create a cross-platform AdminPanel app for mobile, desktop and web with Azure DevOps pipelines and a SqlServer database:
dotnet new bit-bp --name MyAdminPanel --database SqlServer --pipeline Azure --sample Admin
dotnet new bit-bp --name MyTodoApp --database Sqlite --pipeline GitHub --sample Todo --serverUrl todo.bitplatform.dev
dotnet new bit-bp --name MyCompany.MyApp --database SqlServer --pipeline GitHub --sample None --serverUrl app.mycompany.com
dotnet new bit-bp --name MyCompany.MyApp --database SqlServer --pipeline GitHub --sample None --offlineDb
Note: We recommend to create the project in a path that is not too long without space character in the folder names.
Visual Studio
![](images/templates/create-new-project-vs-1.webp)
![](images/templates/create-new-project-vs-2.webp)
![](images/templates/create-new-project-vs-3.webp)
Note: In second window of create new project modal, make sure to check Place solution and project in the same directory checkbox.