Skip to content

Instantly share code, notes, and snippets.

@ebicoglu
Last active June 17, 2021 09:15
Show Gist options
  • Save ebicoglu/543928d2dec68ce4fc0ddf25b8e39bac to your computer and use it in GitHub Desktop.
Save ebicoglu/543928d2dec68ce4fc0ddf25b8e39bac to your computer and use it in GitHub Desktop.
How to add a new microservice to your ABP microservice solution?

This is a GitHub changeset that shows how to add a new microservice to your ABP Commercial microservice solution. I'll add a new microservice called OrderService to a new microservice solution.

First of all, there's an official document guiding these steps:

https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice

Create a new microservice project in your solution:

Run the following command in the root directory of your solution where your main .sln file exists.

abp new OrderService -t microservice-service-pro

image

This is the screenshot of the changes I made when adding the new OrderService

image

@ebicoglu
Copy link
Author

ebicoglu commented Jun 7, 2021

This is the final view of the Web:

1- Grant permission to view the Order Management page
image

2- Log out then login to see the new micro-service in the main menu.
image

The next steps are the git changeset of this new microservice

@ebicoglu
Copy link
Author

ebicoglu commented Jun 7, 2021

To see the GitHub changes of the new microservice, run the following jsfiddle
https://jsfiddle.net/alperonline/j4rd2vfh/show

You can save the HTML to your disk
https://drive.google.com/file/d/1Skqx0IJ6cPcrmuACYP2F4PVuhIvcJsUA/view?usp=sharing

@ebicoglu
Copy link
Author

ebicoglu commented Jun 7, 2021

save this file as .html
add-order-microservice html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment