This is a minimalist, non-layered startup solution with the ABP Framework. All the fundamental ABP modules are already installed. Check the Application (Single Layer) Startup Template documentation for more info.
The solution comes with a default configuration that works out of the box. However, you may consider to change the following configuration before running your solution:
- Check the
ConnectionStringsinappsettings.jsonfile under theModularCrm.Blazor.WebAppproject and change it if you need.
This is a single-layer application that consists of the following projects:
ModularCrm.Blazor.WebApp: ASP.NET Core Blazor Web App with server-side prerendering and optional client-side interactivity.ModularCrm.Blazor.WebApp.Client: Blazor WebApp client project for WebAssembly components.
In the production environment, you need to use a production signing certificate. ABP Framework sets up signing and encryption certificates in your application and expects an openiddict.pfx file in your application.
This certificate is already generated when you created the solution, so most of the time you don't need to generate it yourself. However, if you need to generate a certificate, you can use the following command:
dotnet dev-certs https -v -ep openiddict.pfx -p 16ff6a84-c449-425d-9235-d6c731372000
16ff6a84-c449-425d-9235-d6c731372000is the password of the certificate, you can change it to any password you want.
It is recommended to use two RSA certificates, distinct from the certificate(s) used for HTTPS: one for encryption, one for signing.
For more information, please refer to: OpenIddict Certificate Configuration
Also, see the Configuring OpenIddict documentation for more information.
Run the following command in your solution directory. This step is automatically done when you create a new solution, if you didn't especially disabled it. However, you should run it yourself if you have first cloned this solution from your source control, or added a new client-side package dependency to your solution.
abp install-libsThis command installs all NPM packages for MVC/Razor Pages and Blazor Server UIs and this command is already run by the ABP CLI, so most of the time you don't need to run this command manually.
Deploying an ABP application follows the same process as deploying any .NET or ASP.NET Core application. However, there are important considerations to keep in mind. For detailed guidance, refer to ABP's deployment documentation.
The application provides the related Dockerfiles and docker-compose file with scripts. You can build the docker images and run them using docker-compose. The necessary database, DbMigrator, and the application will be running on docker with health checks in an isolated docker network.
Navigate to etc/build folder and run the build-images-locally.ps1 script. You can examine the script to set image tag for your images. It is latest by default.
Navigate to etc/docker folder and run the run-docker.ps1 script. The script will generate developer certificates (if it doesn't exist already) with dotnet dev-certs command to use HTTPS. Then, the script runs the provided docker-compose file on detached mode.
Not: Developer certificate is only valid for localhost domain. If you want to deploy to a real DNS in a production environment, use LetsEncrypt or similar tools.
Navigate to etc/docker folder and run the stop-docker.ps1 script. The script stops and removes the running containers.
You can see the following resources to learn more about your solution and the ABP Framework: