{"id":21457829,"url":"https://github.com/jmcerrejon/another-fastapi-template","last_synced_at":"2026-05-16T13:03:40.761Z","repository":{"id":262615426,"uuid":"887820743","full_name":"jmcerrejon/another-fastapi-template","owner":"jmcerrejon","description":"This is my custom template project for a simple FastAPI application.","archived":false,"fork":false,"pushed_at":"2024-11-18T19:43:36.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T04:59:41.987Z","etag":null,"topics":["fastapi","fastapi-template","pytho3","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmcerrejon.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-11-13T10:46:05.000Z","updated_at":"2024-11-18T19:43:40.000Z","dependencies_parsed_at":"2025-03-17T04:21:08.382Z","dependency_job_id":null,"html_url":"https://github.com/jmcerrejon/another-fastapi-template","commit_stats":null,"previous_names":["jmcerrejon/another-fastapi-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmcerrejon/another-fastapi-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcerrejon%2Fanother-fastapi-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcerrejon%2Fanother-fastapi-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcerrejon%2Fanother-fastapi-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcerrejon%2Fanother-fastapi-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmcerrejon","download_url":"https://codeload.github.com/jmcerrejon/another-fastapi-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcerrejon%2Fanother-fastapi-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267030824,"owners_count":24024232,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fastapi","fastapi-template","pytho3","python"],"created_at":"2024-11-23T06:07:17.321Z","updated_at":"2026-05-16T13:03:35.724Z","avatar_url":"https://github.com/jmcerrejon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Another FastAPI Template\n\nThis is my custom template project for a simple FastAPI application.\n\n## Description\n\nThis template provides a basic setup for a FastAPI application.\n\n## Requirements\n\n-   Python 3.12+\n-   FastAPI\n-   Uvicorn\n-   SQLAlchemy\n-   Poetry (optional)\n-   Pytest\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/jmcerrejon/another-fastapi-template.git\ncd another-fastapi-template\n```\n\n2. Create and activate a virtual environment:\n\n```bash\npython -m venv .venv\nsource .venv/bin/activate  # On Windows use `.venv\\Scripts\\activate`\n```\n\n3. Install the dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n4. Copy .env.example to .env and modify the values:\n\n```bash\ncp .env.example .env\n```\n\nIf you want to use the customizer script, run the following command:\n\n```bash\n./scripts/boilerplate-customizer.sh\n```\n\nIf you want to start a new project once you have cloned the repository, remove the `.git` directory and start a new git repository. But, maybe you want to get updates from this repository. You can add it as a remote upstream:\n\n```bash\nrm -rf .git\ngit init\n# (Optional) Add the remote repository as upstream\ngit remote add upstream git@github.com:jmcerrejon/another-fastapi-template.git\n```\n\nWhen you want to get updates from this repository:\n\n```bash\ngit pull upstream main\n```\n\n## Running\n\nTo start the server, run the following command:\n\n```bash\nuvicorn main:app --host 127.0.0.1 --port 8000 --reload\n```\n\n## Docker\n\nYou have a containerized version of the app. To build the image, run:\n\n```sh\ndocker build -t fastapi-template . \u0026\u0026 docker run -d -p 8000:8000 --name fastapi-container fastapi-template\n```\n\n## Testing\n\nTo run the tests, run the following command:\n\n```bash\nPYTHONPATH=. pytest\n```\n\n## Using Poetry\n\nTo install and use Poetry in the project, follow these steps:\n\n1. Install Poetry:\n\n```bash\npip install poetry\n```\n\n2. Install the dependencies using Poetry:\n\n```bash\npoetry install\n```\n\n3. To add a new dependency, use the following command:\n\n```bash\npoetry add \u003cpackage_name\u003e\n```\n\n4. To run the project using Poetry, use the following command:\n\n```bash\npoetry run uvicorn main:app --host 127.0.0.1 --port 8000 --reload\n```\n\n## TODO\n\n-   [x] Add Database support (default: sqlite).\n-   [x] Add .env support.\n-   [x] Add SQLAlchemy support.\n-   [x] Add Poetry.\n-   [x] Testing.\n-   [x] Add Dockerfile.\n-   [x] Log system.\n-   [ ] Authentication.\n-   [ ] Modify scripts/boilerplate-customizer.sh to add more options.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Author\n\n-   Made with ❤️ and ☕️ by [Jose Cerrejon](mailto:ulysess@gmail.com).\n-   Inspired on posts by [@aberrospic1](https://medium.com/@aberrospic1/crud-operations-with-fastapi-c2de026e5862) \u0026 [@lou_adam](https://medium.com/@lou_adam/best-practices-for-building-deploying-rest-api-as-data-engineer-concrete-example-with-fastapi-84522745a9f7#7dfc).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcerrejon%2Fanother-fastapi-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmcerrejon%2Fanother-fastapi-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcerrejon%2Fanother-fastapi-template/lists"}