{"id":20788649,"url":"https://github.com/narayan954/fastapi-microservices","last_synced_at":"2025-07-02T09:35:24.981Z","repository":{"id":212037433,"uuid":"727682600","full_name":"narayan954/fastAPI-Microservices","owner":"narayan954","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-07T22:00:23.000Z","size":14940,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T00:18:49.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/narayan954.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}},"created_at":"2023-12-05T11:08:56.000Z","updated_at":"2023-12-12T06:10:14.000Z","dependencies_parsed_at":"2023-12-12T08:25:00.356Z","dependency_job_id":"9d9e6538-528b-4203-9200-3ebec89740c8","html_url":"https://github.com/narayan954/fastAPI-Microservices","commit_stats":null,"previous_names":["narayan954/fastapi-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/narayan954/fastAPI-Microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2FfastAPI-Microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2FfastAPI-Microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2FfastAPI-Microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2FfastAPI-Microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narayan954","download_url":"https://codeload.github.com/narayan954/fastAPI-Microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2FfastAPI-Microservices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263112218,"owners_count":23415569,"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":[],"created_at":"2024-11-17T15:03:07.084Z","updated_at":"2025-07-02T09:35:24.958Z","avatar_url":"https://github.com/narayan954.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Overview\n\nThis project consists of an inventory management system with a frontend built using React and Vite, and two backend services built using FastAPI and Redis. The frontend communicates with the backend services to manage products and orders.\n\n## Frontend\n\nThe frontend is a React application that uses Vite for a faster and leaner development experience. It uses the @vitejs/plugin-react-swc plugin for fast refresh. The application is styled using Bootstrap and custom CSS.\n\nThe application consists of several components:\n\n- Products: Displays a list of products and allows deleting a product.\n- CreateProducts: Provides a form to create a new product.\n- Orders: Allows placing an order for a product.\n\nThe application uses React Router for navigation between these components.\n\nTo run the frontend, use the following commands:\n\n```sh\nnpm install\nnpm run dev\n```\n\n## Backend\n\nThe backend consists of two services: inventory and payment. Both services are built using FastAPI and use Redis as a database.\n\nThe inventory service manages products. It provides endpoints to create, retrieve, and delete products.\n\nThe payment service manages orders. It provides endpoints to create and retrieve orders. When an order is created, it is initially marked as \"pending\". A background task then marks the order as \"completed\".\n\nTo run each backend service, you need to create a virtual environment, activate it, install the dependencies, and then run the application. The commands are as follows:\n\n```sh\npython -m venv venv\nsource venv/bin/activate # Linux\npip install -r requirements.txt\nuvicorn main:app --reload\n```\n\n## Git Ignore\n\nThe .gitignore file is set up to ignore common files and directories that should not be committed to the repository. This includes Python compiled files, virtual environments, logs, and IDE-specific files.\n\n## Linting\n\nThe project uses ESLint for linting the JavaScript code. The configuration for ESLint is in the .eslintrc.cjs file.\n\n## Note\n\nPlease ensure that you have Node.js, Python, and Redis installed on your machine before running the project. Also, update the .env file with the correct Redis connection details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarayan954%2Ffastapi-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarayan954%2Ffastapi-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarayan954%2Ffastapi-microservices/lists"}