{"id":18336726,"url":"https://github.com/itz-amethyst/fastapi-whistler-microservices","last_synced_at":"2026-05-05T20:43:43.649Z","repository":{"id":247850362,"uuid":"827015942","full_name":"itz-Amethyst/fastapi-whistler-microservices","owner":"itz-Amethyst","description":"A microservices-based application built on asynchronous processing and concurrent data handling.","archived":false,"fork":false,"pushed_at":"2024-08-17T11:27:51.000Z","size":959,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T19:56:22.672Z","etag":null,"topics":["async","asynchronous","cuncurrency","fastapi","fastapi-microservices","microservices","postgresql","python","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itz-Amethyst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-07-10T21:08:14.000Z","updated_at":"2024-08-17T11:27:54.000Z","dependencies_parsed_at":"2024-08-17T12:55:16.013Z","dependency_job_id":null,"html_url":"https://github.com/itz-Amethyst/fastapi-whistler-microservices","commit_stats":null,"previous_names":["itz-amethyst/fastapi-whistler-microservices"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itz-Amethyst%2Ffastapi-whistler-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itz-Amethyst%2Ffastapi-whistler-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itz-Amethyst%2Ffastapi-whistler-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itz-Amethyst%2Ffastapi-whistler-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itz-Amethyst","download_url":"https://codeload.github.com/itz-Amethyst/fastapi-whistler-microservices/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103910,"owners_count":21048245,"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":["async","asynchronous","cuncurrency","fastapi","fastapi-microservices","microservices","postgresql","python","sqlalchemy"],"created_at":"2024-11-05T20:08:41.674Z","updated_at":"2026-05-05T20:43:38.627Z","avatar_url":"https://github.com/itz-Amethyst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## FastAPI-Whistler Microservices Project\n\nThis project is a collection of microservices for managing `Products`, `Orders`, `Discounts`, and `Users`. Each service is built using FastAPI, with PostgreSQL as the primary database. The Discount Service uses `MongoDB`. The project also includes support for managing generic pictures associated with different entities.\n\n- \u003e Service Communication\n\nIn this microservices architecture, services communicate with each other through APIs when required.\n\n- \u003e Async-Oriented Architecture\n\nThis project uses asynchronous programming to handle tasks, including\nin some areas, concurrency has been applied to further optimize performance.\n\n### Purpose:\nThe main purpose of this proejct is to explore the potentials of FastAPI in building high scale applications\n\n\n## Features\n\n- `Product Management`: CRUD operations for products, including image upload (handled via sql queries).\n- `Order Management`: Create and manage orders, track order status (handled via sql queries).\n- `Discount Management`: Apply and manage discounts on products or orders.\n- `User Management`: User registration, authentication with scope permissions through application.\n- `Generic Picture Support`: Upload and associate images with various entities.\n\n\n## Built With :\n\n[![FastAPI](https://img.shields.io/badge/FASTAPI-0.111.0-009688?style=for-the-badge\u0026logo=fastapi)](https://fastapi.tiangolo.com/)\n[![SQLAlchemy](https://img.shields.io/badge/SQLALCHEMY-2.0.31-d32f2f?style=for-the-badge\u0026logo=sqlalchemy)](https://www.sqlalchemy.org/)\n[![Asyncpg](https://img.shields.io/badge/ASYNC_PG-0.29.0-039be5?style=for-the-badge)](https://github.com/MagicStack/asyncpg)\n[![Alembic](https://img.shields.io/badge/ALEMBIC-1.13.2-8bc34a?style=for-the-badge)](https://alembic.sqlalchemy.org/)\n[![pymongo](https://img.shields.io/badge/PYMONGO-4.8.0-47a248?style=for-the-badge\u0026logo=mongodb)](https://pypi.org/project/pymongo/)\n[![Beanie](https://img.shields.io/badge/BEANIE-1.26.0-0d9488?style=for-the-badge)](https://pypi.org/project/beanie/)\n[![structlog](https://img.shields.io/badge/STRUCTLOG-24.4.0-00d084?style=for-the-badge)](https://www.structlog.org/)\n[![tenacity](https://img.shields.io/badge/TENACITY-8.5.0-ff2e63?style=for-the-badge)](https://pypi.org/project/tenacity/)\n[![aiohttp](https://img.shields.io/badge/AIOHTTP-3.10.3-009688?style=for-the-badge\u0026logo=aiohttp)](https://docs.aiohttp.org/en/stable/)\n[![PyJWT](https://img.shields.io/badge/PYJWT-2.8.0-7f7f7f?style=for-the-badge)](https://pypi.org/project/PyJWT/)\n[![emails](https://img.shields.io/badge/EMAILS-0.6-d44638?style=for-the-badge)](https://pypi.org/project/emails/)\n[![aiosmtplib](https://img.shields.io/badge/AIOSMTPLIB-3.0.1-39a7a1?style=for-the-badge)](https://pypi.org/project/aiosmtplib/)\n[![APScheduler](https://img.shields.io/badge/APScheduler-3.10.4-512da8?style=for-the-badge)](https://pypi.org/project/APScheduler/)\n[![prometheus-fastapi-instrumentator](https://img.shields.io/badge/PROMETHEUS_FASTAPI_INSTRUMENTATOR-7.0.0-f56c42?style=for-the-badge)](https://pypi.org/project/prometheus-fastapi-instrumentator/)\n[![aiofiles](https://img.shields.io/badge/AIOFILES-24.1.0-2196f3?style=for-the-badge)](https://pypi.org/project/aiofiles/)\n\n---\n### **You can use my .env as an example but be aware to change that later**\n---\n\n- #### **Note: After running the project you can authenticate with User: `admin` , Password: `test` credentials in order to have access to apis**\n## Running with Docker\n\nTo quickly get started with Docker, follow these steps:\n\n\n#### Start the services using Docker Compose:\n\n```sh\ndocker-compose up\n```\n\nThis command will start all the services defined in docker-compose.yml file, including:\n\n- `db`: PostgreSQL database\n- `web`: Your FastAPI application\n- `pgadmin`: PgAdmin for managing the PostgreSQL database\n- `prometheus`: Prometheus for monitoring\n- `grafana`: Grafana for visualization\n\nYou can access your FastAPI application at http://localhost:8000\n\nPgAdmin at http://localhost:5050\n\nGrafana at http://localhost:3000\n\nand Prometheus at http://localhost:9090\n\n#### Stop the services:\n```sh\ndocker-compose down\n```\n\n### Running localy:\nRunning Locally with Poetry\n\n(Because we're using `PostgreSQL` docker image as a database we have to first start the db)\n\n1. **Start the PostgreSQL database service using Docker Compose**:\n\n\n```sh\n./scripts/run_migration.sh\n```\n\nThis script starts the PostgreSQL Docker container and then performs database migrations to prepare the model for use.\n\n\n2. Install the dependencies using Poetry:\n\n```sh\npoetry install\n```\n\n3. Run the FastAPI application using Uvicorn:\n\n```sh\npoetry run uvicorn main:app --reload\n```\n\nFastAPI application will be available at http://localhost:8000.\n\n\n### Contribution\n\nFeel free to open a PR; I'd appreciate that! ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitz-amethyst%2Ffastapi-whistler-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitz-amethyst%2Ffastapi-whistler-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitz-amethyst%2Ffastapi-whistler-microservices/lists"}