{"id":21475024,"url":"https://github.com/thesparkvision/fastapi-basic-project","last_synced_at":"2026-05-19T17:12:54.497Z","repository":{"id":181614070,"uuid":"667036195","full_name":"thesparkvision/FastAPI-Basic-Project","owner":"thesparkvision","description":"I am learning FastAPI. This Repository  contains a basic project which deals with some simple data and interact with MongoDB for accessing/updating it","archived":false,"fork":false,"pushed_at":"2023-07-23T23:13:37.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-23T17:17:08.000Z","etag":null,"topics":["fastapi"],"latest_commit_sha":null,"homepage":"https://fastapi-exp.onrender.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesparkvision.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":"2023-07-16T12:35:28.000Z","updated_at":"2023-10-26T08:49:57.000Z","dependencies_parsed_at":"2024-11-23T12:15:20.541Z","dependency_job_id":null,"html_url":"https://github.com/thesparkvision/FastAPI-Basic-Project","commit_stats":null,"previous_names":["thesparkvision/fastapi","thesparkvision/fastapi-basic-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesparkvision%2FFastAPI-Basic-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesparkvision%2FFastAPI-Basic-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesparkvision%2FFastAPI-Basic-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesparkvision%2FFastAPI-Basic-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesparkvision","download_url":"https://codeload.github.com/thesparkvision/FastAPI-Basic-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997038,"owners_count":20380980,"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":["fastapi"],"created_at":"2024-11-23T10:36:10.450Z","updated_at":"2026-05-19T17:12:54.438Z","avatar_url":"https://github.com/thesparkvision.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/thesparkvision/FastAPI/actions/workflows/build_and_run.yaml/badge.svg)](https://github.com/thesparkvision/FastAPI/actions/workflows/build_and_run.yaml)\n\n## Intro\n\nThis repository is to practice FastAPI code while learning it\n\n## Live App Link\n\nhttps://fastapi-learning.onrender.com/\n\n## Setup\n\n**Python Version**: 3.11.1\n\n- Create Virtual env\n    \n    ```shell\n    python3 -m venv venv\n    ```\n\n- Install Packages\n\n    ```shell\n    pip install -r requirements.txt\n    ```\n\n- Add these environment variables in .env file or in shell\n\n    ```\n    export MONGO_URI=mongodb://172.17.0.2:27017\n    export PYTHONPATH=$PYTHONPATH:$PWD\n    export APP_HOST=0.0.0.0\n    export APP_PORT=8000\n    ```\n\n- Install MongoDB or use MongoDB Docker Image (https://hub.docker.com/_/mongo)\n\n## Run the app directly in local environment inside src folder\n\n```shell\npython3 main.py\n```\n\n## Local Docker Container Setup\n\nIf you prefer to use docker container,\nor need to debug the build for some reason,\nyou can follow these chain of commands:\n\n- Build the Docker Image\n\n    ```shell\n    docker build . -t fastapi-learning:v1 -f deploy/Dockerfile\n    ```\n\n- Create and Run Docker container\n\n    ```shell\n    docker run -d --net=host fastapi-learning:v1\n    ```\n\n## Run Lint\n\n```shell\nbash scripts/lint.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesparkvision%2Ffastapi-basic-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesparkvision%2Ffastapi-basic-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesparkvision%2Ffastapi-basic-project/lists"}