临河任务调度
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Acme.BookStore
  2. ## About this solution
  3. This is a layered startup solution based on [Domain Driven Design (DDD)](https://docs.abp.io/en/abp/latest/Domain-Driven-Design) practises. All the fundamental ABP modules are already installed.
  4. ### Pre-requirements
  5. * [.NET 8.0+ SDK](https://dotnet.microsoft.com/download/dotnet)
  6. * [Node v18 or 20](https://nodejs.org/en)
  7. * [Redis](https://redis.io/)
  8. ### Configurations
  9. 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:
  10. * Check the `ConnectionStrings` in `appsettings.json` files under the `Acme.BookStore.AuthServer`, `Acme.BookStore.HttpApi.Host` and `Acme.BookStore.DbMigrator` projects and change it if you need.
  11. ### Before running the application
  12. #### Generating a Signing Certificate
  13. 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.
  14. This certificate is already generated by ABP CLI, 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:
  15. ```bash
  16. dotnet dev-certs https -v -ep openiddict.pfx -p 7caa3a34-feaf-4613-95cb-ecbaf48ffc21
  17. ```
  18. > `7caa3a34-feaf-4613-95cb-ecbaf48ffc21` is the password of the certificate, you can change it to any password you want.
  19. It is recommended to use **two** RSA certificates, distinct from the certificate(s) used for HTTPS: one for encryption, one for signing.
  20. For more information, please refer to: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html#registering-a-certificate-recommended-for-production-ready-scenarios
  21. > Also, see the [Configuring OpenIddict](https://docs.abp.io/en/abp/latest/Deployment/Configuring-OpenIddict#production-environment) documentation for more information.
  22. #### Install Client-Side Libraries
  23. Run the following command in the directory of your final application:
  24. ```bash
  25. abp install-libs
  26. ```
  27. > This 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.
  28. #### Create the Database
  29. Run `Acme.BookStore.DbMigrator` to create the initial database. This should be done in the first run. It is also needed if a new database migration is added to the solution later.
  30. ### Solution structure
  31. This is a layered monolith application that consists of the following applications:
  32. * `Acme.BookStore.DbMigrator`: A console application which applies the migrations and also seeds the initial data. It is useful on development as well as on production environment.
  33. * `Acme.BookStore.AuthServer`: ASP.NET Core MVC / Razor Pages application that is integrated OAuth 2.0(`OpenIddict`) and account modules. It is used to authenticate users and issue tokens.
  34. * `Acme.BookStore.HttpApi.Host`: ASP.NET Core API application that is used to expose the APIs to the clients.
  35. * `Acme.BookStore.Web`: ASP.NET Core MVC / Razor Pages application that is the essential web application of the solution.
  36. ### Deploying the application
  37. Deploying an ABP application is not different than deploying any .NET or ASP.NET Core application. However, there are some topics that you should care about when you are deploying your applications. You can check ABP's [Deployment documentation](https://docs.abp.io/en/abp/latest/Deployment/Index) before deploying your application.
  38. ### Additional resources
  39. You can see the following resources to learn more about your solution and the ABP Framework:
  40. * [Web Application Development Tutorial](https://docs.abp.io/en/abp/latest/Tutorials/Part-1)
  41. * [Application Startup Template Structure](https://docs.abp.io/en/abp/latest/Startup-Templates/Application)
  42. * [LeptonX Lite MVC UI](https://docs.abp.io/en/abp/latest/Themes/LeptonXLite/AspNetCore)