Browse Source

Add part-04 of microservice tutorial covering the creation of the Ordering microservice and additional options for configuration

pull/21456/head
ahmetfarukulu 2 years ago
parent
commit
dc655edba5
  1. BIN
      docs/en/tutorials/microservice/images/abp-studio-add-new-microservice-command-2.png
  2. BIN
      docs/en/tutorials/microservice/images/abp-studio-add-new-microservice-dialog-2.png
  3. 2
      docs/en/tutorials/microservice/part-02.md
  4. 6
      docs/en/tutorials/microservice/part-03.md
  5. 59
      docs/en/tutorials/microservice/part-04.md

BIN
docs/en/tutorials/microservice/images/abp-studio-add-new-microservice-command-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
docs/en/tutorials/microservice/images/abp-studio-add-new-microservice-dialog-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

2
docs/en/tutorials/microservice/part-02.md

@ -46,6 +46,8 @@ ABP Studio intelligently selects the right values for you, but you should still
**Ensure the options are configured the same as in the preceding figure**, and click the *Next* button. **Ensure the options are configured the same as in the preceding figure**, and click the *Next* button.
### Additional Options
![abp-studio-add-new-microservice-dialog-additional-options-step](images/abp-studio-add-new-microservice-dialog-additional-options-step.png) ![abp-studio-add-new-microservice-dialog-additional-options-step](images/abp-studio-add-new-microservice-dialog-additional-options-step.png)
In this step, you can select additional options for the new microservice. You can leave them as default and click the *Create* button. In this step, you can select additional options for the new microservice. You can leave them as default and click the *Create* button.

6
docs/en/tutorials/microservice/part-03.md

@ -75,7 +75,7 @@ ABP Suite will generate the necessary code for you. It will take some time to co
We can now build and start the `CloudCrm.CatalogService` application by clicking the *Run* -> *Build & Start* button in the *Solution Runner* panel. We can now build and start the `CloudCrm.CatalogService` application by clicking the *Run* -> *Build & Start* button in the *Solution Runner* panel.
![abp-studio-browse-catalog-service-2](abp-studio-browse-catalog-service-2.png) ![abp-studio-browse-catalog-service-2](images/abp-studio-browse-catalog-service-2.png)
After the application is started, you can rigth-click and [Browse](../../studio/running-applications.md#monitoring) on the `CloudCrm.CatalogService` application to open it in the ABP Studio inside browser. You can see the *Products* controller in the Swagger UI. After the application is started, you can rigth-click and [Browse](../../studio/running-applications.md#monitoring) on the `CloudCrm.CatalogService` application to open it in the ABP Studio inside browser. You can see the *Products* controller in the Swagger UI.
@ -117,3 +117,7 @@ After the application is started, you can rigth-click and [Browse](../../studio/
You can open the Sql Server Management Studio to see the created tables and data: You can open the Sql Server Management Studio to see the created tables and data:
![sql-server-management-studio-products](images/sql-server-management-studio-products.png) ![sql-server-management-studio-products](images/sql-server-management-studio-products.png)
## Summary
In this part, we've created a new entity named *Product* and generated the necessary code for it. We've also generated the UI proxy for the `CatalogService` application and configured the static HTTP client for it in the `Web` project. We've run the application and tested the *Products* page.

59
docs/en/tutorials/microservice/part-04.md

@ -0,0 +1,59 @@
# Microservice Tutorial Part 04: Creating the initial Ordering Microservice
````json
//[doc-nav]
{
"Previous": {
"Name": "Building the Catalog Microservice",
"Path": "tutorials/microservice/part-03"
},
"Next": {
"Name": "Building the Ordering module",
"Path": "tutorials/microservice/part-05"
}
}
````
In the previous part, we implemented the Catalog microservice functionality using ABP Suite. In this part, we will create the Ordering microservice, and the following part will cover implementing its functionality manually.
## Creating the Ordering Microservice
Right-click the `services` folder in the *Solution Explorer* panel, select the *Add* -> *New Module* -> *Microservice* command:
![abp-studio-add-new-microservice-command](images/abp-studio-add-new-microservice-command-2.png)
This command opens a new dialog to define the properties of the new microservice. You can use the following values to create a new microservice named `OrderingService`:
![abp-studio-add-new-microservice-dialog](images/abp-studio-add-new-microservice-dialog-2.png)
When you click the *Next* button, you are redirected to the database provider selection step.
### Selecting the Database Type
Here, you can select the database provider to be used by the new microservice:
![abp-studio-add-new-microservice-dialog-database-step](images/abp-studio-add-new-microservice-dialog-database-step.png)
Select *Entity Framework Core* option and proceed the *Next* step.
### Integrating to the Solution
In this step, we can select the options for integrating the new microservice to the rest of the solution components:
![abp-studio-add-new-microservice-dialog-integration-step](images/abp-studio-add-new-microservice-dialog-integration-step.png)
ABP Studio intelligently selects the right values for you, but you should still check them carefully since they directly affect what we will do in the next parts of this tutorial.
**Ensure the options are configured the same as in the preceding figure**, and click the *Next* button.
### Additional Options
![abp-studio-add-new-microservice-dialog-additional-options-step](images/abp-studio-add-new-microservice-dialog-additional-options-step.png)
In this step, you can select additional options for the new microservice. You can leave them as default and click the *Create* button.
That's all, ABP Studio creates the new microservice and arranges all the integration and configuration for you.
## Exploring the New Ordering Microservice
In this section, we will investigate the new microservice in overall.
Loading…
Cancel
Save