Skip to content

Commit

Permalink
Add part-04 of microservice tutorial covering the creation of the Ord…
Browse files Browse the repository at this point in the history
…ering microservice and additional options for configuration
  • Loading branch information
ahmetfarukulu committed Nov 13, 2024
1 parent 9fb2302 commit dc655ed
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/en/tutorials/microservice/part-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

### 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.
Expand Down
6 changes: 5 additions & 1 deletion docs/en/tutorials/microservice/part-03.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

![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.

Expand Down Expand Up @@ -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:

![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 changes: 59 additions & 0 deletions docs/en/tutorials/microservice/part-04.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit dc655ed

Please sign in to comment.