Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ademcatamak/ordermanagement

Orchestration based Saga => https://medium.com/@ademcatamak/koordinat%C3%B6r-tabanl%C4%B1-saga-tasar%C4%B1m%C4%B1-sipari%C5%9F-y%C3%B6netimi-4db5fc546f68
https://github.com/ademcatamak/ordermanagement

distributed-locks ordermanagement saga-pattern sample-app

Last synced: about 5 hours ago
JSON representation

Orchestration based Saga => https://medium.com/@ademcatamak/koordinat%C3%B6r-tabanl%C4%B1-saga-tasar%C4%B1m%C4%B1-sipari%C5%9F-y%C3%B6netimi-4db5fc546f68

Awesome Lists containing this project

README

        

# Order Management

This project is designed for managing order operations by using state machine.

## __RUN__

__Way 1__

The project could be executed via _docker-compose_. If you have an IDE which is capable of debugging _docker-compose file_, _docker-compose.yml_ which is located at the main directory would be useful for you.

In case of choosing this way to run the project, you can reach swagger screen via _http://localhost:2000_.

Note: Because the sql server needs more time to be ready compared to OrderManagement-Api, it might take a while for you to reach the endpoints after `docker-compose up` command execution.

__Way 2__

If you want to execute the project without using docker, it is required that you set the connection strings inside the OrderManagement/appsettings.json file.

Changes to be made are:
1. DbConfig -> DbOptions -> ConnectionStr value should be changed with the Sql Server connection string that you have.
2. DistributedLockConfig -> DistributedLockOptions -> ConnectionStr value should be changed with the Sql Server connection string that you have.
3. MassTransitConfig -> MassTransitOptions -> HostName, VirtualHost, Username, Password values should be changed with the RabbitMq platform information that you have.

In the first item if the connection string information is invalid, application will crash immediately. In order to check if the remaining settings are valid, you can use http://localhost:5000/healthchecks-ui endpoint.