{"id":24332343,"url":"https://github.com/emmrys-jay/micro-order","last_synced_at":"2026-04-12T15:03:33.757Z","repository":{"id":273004048,"uuid":"918439513","full_name":"emmrys-jay/micro-order","owner":"emmrys-jay","description":"A micro-service based order and delivery application","archived":false,"fork":false,"pushed_at":"2025-01-18T00:19:20.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T01:20:07.869Z","etag":null,"topics":["air-verse","docker","docker-compose","event-driven","go-chi","golang","hexagonal-architecture","makefile","microservice","mongodb","openapi","rabbitmq","redis","redis-cache","swagger","viper","yaml","yq","zap"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emmrys-jay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-18T00:03:08.000Z","updated_at":"2025-01-18T00:19:21.000Z","dependencies_parsed_at":"2025-01-18T01:20:18.403Z","dependency_job_id":"333bb893-668b-429f-acb4-b34e94bba502","html_url":"https://github.com/emmrys-jay/micro-order","commit_stats":null,"previous_names":["emmrys-jay/micro-order"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmrys-jay%2Fmicro-order","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmrys-jay%2Fmicro-order/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmrys-jay%2Fmicro-order/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmrys-jay%2Fmicro-order/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmrys-jay","download_url":"https://codeload.github.com/emmrys-jay/micro-order/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243033705,"owners_count":20225213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["air-verse","docker","docker-compose","event-driven","go-chi","golang","hexagonal-architecture","makefile","microservice","mongodb","openapi","rabbitmq","redis","redis-cache","swagger","viper","yaml","yq","zap"],"created_at":"2025-01-18T02:18:26.494Z","updated_at":"2026-04-12T15:03:33.683Z","avatar_url":"https://github.com/emmrys-jay.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro-Order\nThis was inspired by an assessment for a senior backend engineer role.\n\n## Overview\nThe **Micro-Order** project is a microservice-based application that consists of three main services:\n- **Owner-Service**\n- **Product-Service**\n- **Order-Service**\n\n## Services\n\n### Owner-Service\nThis service is responsible for managing the owners of the products. It includes functionalities such as:\n- Creating a new owner (user)\n- Updating owner details\n- Deleting an owner\n- Retrieving owner information\n\n### Product-Service\nThis service handles all operations related to products. It includes functionalities such as:\n- Adding a new product\n- Updating product details\n- Deleting a product\n- Retrieving product information\n\n### Order-Service\nThis service manages the orders placed by customers. It includes functionalities such as:\n- Creating a new order\n- Updating order details\n- Deleting an order\n- Retrieving order information\n\nDetailed information can be found in each service README file.\n\n## Project Architecture\n![Micro-order drawio (2)](https://github.com/user-attachments/assets/9c5f58e7-bcd7-4858-9070-4b540a99323c)\n\n\n## Getting Started\n\n### Prerequisites\n- [Go 1.20 or higher](https://go.dev/)\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n- [YQ - CLI-based yaml processor](https://github.com/mikefarah/yq)\n- [Make](https://www.gnu.org/software/make/)\n- [Air](https://github.com/air-verse/air)\n\n### Installation\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/emmrys-jay/micro-order.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd micro-order\n    ```\n3. Start all required containers for databases and cache using Docker Compose:\n    ```sh\n    make service-up\n    ```\n4. Navigate to the home directory of each of the services in different terminals and start them in development mode\n    ```sh\n    cd owner-service\n    make air\n\n    cd product-service\n    make air\n\n    cd order-service\n    make air\n    ```\n5. All the default configs are being used, and they can be found in `config-sample.yml` in each service \n\n### Usage\n- Access the services via their respective endpoints:\n  - Owner-Service: `http://localhost:8081`\n  - Product-Service: `http://localhost:8082`\n  - Order-Service: `http://localhost:8080`\n\n### TODO\n- [ ] Add mechanism to handle consumer errors when handling events\n- [ ] Security fixes\n- [ ] Swagger documentation for each service\n- [ ] Proper Error handling between grpc calls\n\n## Contributing\nContributions are welcome! Please follow these steps:\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Create a new Pull Request.\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\nFor any inquiries or issues, please contact:\n- Emmrys Jay - [jonathanemma121@gmail.com](jonathanemma121@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmrys-jay%2Fmicro-order","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmrys-jay%2Fmicro-order","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmrys-jay%2Fmicro-order/lists"}