{"id":18152070,"url":"https://github.com/octaviosancho-dev/microservices-fooddelivery-app","last_synced_at":"2026-02-23T12:09:56.294Z","repository":{"id":250373521,"uuid":"827060392","full_name":"octaviosancho-dev/microservices-fooddelivery-app","owner":"octaviosancho-dev","description":".NET Microservices Food Delivery App","archived":false,"fork":false,"pushed_at":"2024-11-07T23:57:57.000Z","size":4574,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T20:41:38.713Z","etag":null,"topics":["api-gateway","azure","backend","cicd","containerization","docker","dotnet","microservices","ocelot","postgresql","rabbitmq","razor-pages","sqlserver","stripe"],"latest_commit_sha":null,"homepage":"https://fooddelivery-web.onrender.com/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octaviosancho-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-07-11T00:17:10.000Z","updated_at":"2025-07-22T16:26:52.000Z","dependencies_parsed_at":"2024-08-19T01:57:27.022Z","dependency_job_id":"6b1dacbf-1973-4647-8546-ca8636d7db45","html_url":"https://github.com/octaviosancho-dev/microservices-fooddelivery-app","commit_stats":null,"previous_names":["octaviosancho-dev/dotnet-microservices-ecommerce","octaviosancho-dev/dotnet-microservices-fooddelivery-app","octaviosancho-dev/microservices-fooddelivery-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/octaviosancho-dev/microservices-fooddelivery-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviosancho-dev%2Fmicroservices-fooddelivery-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviosancho-dev%2Fmicroservices-fooddelivery-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviosancho-dev%2Fmicroservices-fooddelivery-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviosancho-dev%2Fmicroservices-fooddelivery-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octaviosancho-dev","download_url":"https://codeload.github.com/octaviosancho-dev/microservices-fooddelivery-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviosancho-dev%2Fmicroservices-fooddelivery-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29742275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-gateway","azure","backend","cicd","containerization","docker","dotnet","microservices","ocelot","postgresql","rabbitmq","razor-pages","sqlserver","stripe"],"created_at":"2024-11-02T02:05:29.704Z","updated_at":"2026-02-23T12:09:56.259Z","avatar_url":"https://github.com/octaviosancho-dev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FoodDeliveryApp\n\n**FoodDeliveryApp** is an online food delivery and purchase application that allows users to add products to the cart, make purchases, and manage both purchase orders and products. The application follows a microservices architecture, ensuring scalability and ease of maintenance.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Architecture](#architecture)\n- [Recent Updates](#recent-updates)\n- [Prerequisites](#prerequisites)\n- [Setup and Execution](#setup-and-execution)\n- [API Documentation](#api-documentation)\n- [Technologies Used](#technologies-used)\n\n## Overview\n\n**FoodDeliveryApp** provides a comprehensive solution for purchasing food products. Users can explore products, add them to the cart, complete purchases, and manage their orders. Each component of the application is handled by a specific microservice, enabling independent deployment and maintenance.\n\n![image](https://github.com/user-attachments/assets/ca5f02b8-1ad0-4c36-9398-12a8504cd6cd)\n\n\n## Architecture\n\nThe application is built with independent microservices for each key functionality:\n\n- **Authentication Service**: Manages user registration, login, and roles.\n- **Products Service**: Provides details of available products for purchase.\n- **Orders Service**: Manages the flow of purchase orders from creation to delivery.\n- **Coupons Service**: Manages the generation and validation of discount coupons.\n- **Rewards Service**: Manages the rewards system for users.\n- **Shopping Cart Service**: Allows users to add, modify, and remove products from their cart.\n- **Emails Service**: Handles email notifications such as order confirmations and status updates.\n\n![image](https://github.com/user-attachments/assets/11060686-43df-4c13-a93b-2b9b450f4f58)\n\n\nEach microservice is autonomous, with its own database and business logic. Communication between them is handled asynchronously using queues and topics with **RabbitMQ**.\n\n## Recent Updates\n\n- **Docker Integration**: Dockerfiles have been added for each microservice, and the application can now be orchestrated with `docker-compose.yml` to simplify deployment and local testing.\n- **Message Bus Hosted on CloudAMQP**: The RabbitMQ message bus has been migrated to CloudAMQP for asynchronous communication between services.\n- **Database Migration to PostgreSQL**: The application's database infrastructure has been transitioned from MSSQL to PostgreSQL. Entity Framework Core has been configured to support this change.\n- **Deployment on Render.com**: The entire application, including all microservices and PostgreSQL database, is deployed and hosted on Render.com.\n\n## Prerequisites\n\nEnsure you have the following tools installed:\n\n- [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)\n- [Docker](https://www.docker.com/)\n- [Visual Studio 2022](https://visualstudio.microsoft.com/) (or any compatible editor)\n\n## Setup and Execution\n\n\n### Clone the repository\n\n```bash\ngit clone https://github.com/octaviosancho-dev/dotnet-microservices-fooddelivery-app.git\ncd dotnet-microservices-fooddelivery-app\n```\n\n\n## Running the Application Locally\n\nTo run the entire application, open Visual Studio 2022 and configure the startup as Multiple startup projects:\n\n![image](https://github.com/user-attachments/assets/7a9c8218-918b-4405-8d05-9499d2596e38)\n\n\nEach appsettings.json file is configured for production by default. To run the application locally, you need to update the URLs in the ServiceUrls section and connection strings as follows:\n\n- Comment out the production URLs and uncomment the localhost URLs in the appsettings.json files for each service. For example, in FoodDelivery.Web:\n\n```json\n\"ConnectionStrings\": {\n  \"DefaultConnection\": \"Server=DESKTOP-KH8OVIA;Database=FoodDelivery_Auth;Trusted_Connection=True;TrustServerCertificate=True\",\n  //\"PostgreSqlConnection\": \"Host=dpg-crpkrt08fa8c73e3k4vg-a;Port=5432;Database=UsersDB;Username=fooddeliverydb_is4x_user;Password=jJkIG50sStqzrRzRLBu9fTGdIRZKiyCY;\"\n  //\"DEBUGGING\":\n  \"PostgreSqlConnection\": \"Host=dpg-crpkrt08fa8c73e3k4vg-a.oregon-postgres.render.com;Port=5432;Database=UsersDB;Username=fooddeliverydb_is4x_user;Password=jJkIG50sStqzrRzRLBu9fTGdIRZKiyCY;\"\n}\n```\n\n```json\n\"ServiceUrls\": {\n  //\"AuthAPI\": \"https://fooddelivery-services-authapi.onrender.com\",\n  //\"ProductAPI\": \"https://fooddelivery-gatewaysolution.onrender.com\",\n  \n  \"AuthAPI\": \"https://localhost:7002\",\n  \"ProductAPI\": \"https://localhost:7777\"\n  }\n```\n\n- After modifying the necessary configurations, navigate to each service folder and run the service using the command:\n\n```bash\ncd FoodDelivery.Services.AuthAPI\ndotnet run\n```\nRepeat the same for each microservice.\n\n\n## Running the Application via Docker Compose\nTo run the entire application using Docker Compose, execute the following command in the root directory of the project where the docker-compose.yml file is located:\n\n```bash\ndocker-compose up\n```\nThis will start all the microservices, PostgreSQL database, and RabbitMQ using the pre-configured Docker containers.\n\n## API Documentation\n\nSwagger is available to interact with the API:\n\n```bash\nhttp://localhost:{port}/swagger/index.html\n```\n\n## Technologies Used\n\n- .NET 8\n- Docker\n- RabbitMQ (hosted on CloudAMQP)\n- PostgreSQL (as the main database)\n- Entity Framework Core (for data access)\n- Render.com (for deployment)\n- Swagger (for API documentation)\n- Ocelot Gateway (for routing between microservices)\n- Stripe Payments API (for payment management)\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctaviosancho-dev%2Fmicroservices-fooddelivery-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctaviosancho-dev%2Fmicroservices-fooddelivery-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctaviosancho-dev%2Fmicroservices-fooddelivery-app/lists"}