{"id":15141766,"url":"https://github.com/in7hesky/python-fastapi-clients","last_synced_at":"2026-03-06T20:03:54.045Z","repository":{"id":253431995,"uuid":"843449884","full_name":"in7hesky/python-fastapi-clients","owner":"in7hesky","description":"A non-monolithic approach to development using Nginx, MongoDB, docker-compose, etc.","archived":false,"fork":false,"pushed_at":"2024-08-21T20:59:12.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-06T23:07:50.163Z","etag":null,"topics":["crud-api","docker-compose","docker-image","fastapi","mongodb","nginx","python","swagger","uvicorn"],"latest_commit_sha":null,"homepage":"","language":"Python","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/in7hesky.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}},"created_at":"2024-08-16T14:40:13.000Z","updated_at":"2024-08-21T21:05:30.000Z","dependencies_parsed_at":"2024-08-20T13:31:55.240Z","dependency_job_id":"280cf8ab-d131-4a54-84ad-4cba0e456e51","html_url":"https://github.com/in7hesky/python-fastapi-clients","commit_stats":null,"previous_names":["in7hesky/python-fastapi-clients"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/in7hesky/python-fastapi-clients","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-fastapi-clients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-fastapi-clients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-fastapi-clients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-fastapi-clients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/in7hesky","download_url":"https://codeload.github.com/in7hesky/python-fastapi-clients/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-fastapi-clients/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30195571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["crud-api","docker-compose","docker-image","fastapi","mongodb","nginx","python","swagger","uvicorn"],"created_at":"2024-09-26T09:01:50.301Z","updated_at":"2026-03-06T20:03:53.999Z","avatar_url":"https://github.com/in7hesky.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Project Description ###\n\nThis project introduces a non-monolithic architecture which utilises some of the docker-compose potential.\n\nThe overall composition can be seen here:\n\n![fastapi-clients (1)](https://github.com/user-attachments/assets/43884ace-268f-43da-acd0-b4415bb212f3)\n\nList of main tools and images used:\n- fastapi\n- uvicorn\n- pydantic\n- mongodb\n- mongo-express (as a dbclient)\n- nginx\n- docker-compose\n\nThe core module is a RESTful application which supports basic CRUD operations to manipulate data with the state stored in a MongoDB.\n\nHere is a **Swagger** list of all supported operations:\n\n![image](https://github.com/user-attachments/assets/07bf3fa9-6a74-425b-ad3a-e54aa17704ec)\n\nBelow you'll see general instructions on deploying or running the app manually.\n## Deploying\n\nThe project is meant to be deployed by using **docker-compose**. \n\nJust run the command from the project's root directory providing a password env variable:\n```\nMONGO_PASSWORD=\u003cpassword\u003e docker compose up -d\n```\nThat's all you need to deploy everything mentioned above.\n\nYou've got two ports available (ip for localhost):\n```\n127.0.0.1:80    # nginx -\u003e uvicorn -\u003e fastapi requests forwarding\n127.0.0.1:8081  # ui client for mongodb using mongo-express image\n```\nNow you are ready to use something like **Curl** / **Postman** to test the application's endpoints, although you may want to look through **Swagger** docs on the `/docs` endpoint beforehand.\n\n*Do notice that mongo-express is integrated for easy mongodb accessing and should be discarded in real world scenarios (or at least make sure you don't expose it's port for public access).*\n## Manual app running\nTo run the app manually or make your own docker image you should remember to provide `DB_NAME` and `MONGODB_URL` environment variables.\n\nThe app supports reading the env variables from `.env` file, so you can place it in the project's root directory and populate it accordingly:\n```\nMONGODB_URL=mongodb://login:password@localhost:port/\nDB_NAME=clientsDB\n```\nNow you can proceed with setting up `venv` and/or installing dependencies from `requirements.txt`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fin7hesky%2Fpython-fastapi-clients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fin7hesky%2Fpython-fastapi-clients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fin7hesky%2Fpython-fastapi-clients/lists"}