{"id":24300592,"url":"https://github.com/23tae/fastapi-tutorial","last_synced_at":"2025-10-15T06:35:15.369Z","repository":{"id":253411607,"uuid":"828945845","full_name":"23tae/fastapi-tutorial","owner":"23tae","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-16T12:50:43.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T21:44:31.443Z","etag":null,"topics":["backend","fastapi","tutorial"],"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/23tae.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-07-15T12:50:41.000Z","updated_at":"2024-08-16T12:51:49.000Z","dependencies_parsed_at":"2024-08-16T15:16:41.504Z","dependency_job_id":"d79b1a2c-17ad-48da-b3ea-8c4bc3d88cb4","html_url":"https://github.com/23tae/fastapi-tutorial","commit_stats":null,"previous_names":["23tae/fastapi-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/23tae/fastapi-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23tae%2Ffastapi-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23tae%2Ffastapi-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23tae%2Ffastapi-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23tae%2Ffastapi-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/23tae","download_url":"https://codeload.github.com/23tae/fastapi-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23tae%2Ffastapi-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279058397,"owners_count":26094844,"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-10-15T02:00:07.814Z","response_time":56,"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":["backend","fastapi","tutorial"],"created_at":"2025-01-16T23:15:00.486Z","updated_at":"2025-10-15T06:35:15.341Z","avatar_url":"https://github.com/23tae.png","language":"Python","readme":"# FastAPI Tutorial\n\n## Description\n\nFastAPI로 구축된 탄소 배출권 거래 서비스의 서버입니다. 사용자 인증, 탄소 배출량 조회 및 업데이트 기능을 제공합니다.\n\n\n### Built with\n\n* [![FastAPI]][FastAPI-url]\n* [![PostgreSQL]][PostgreSQL-url]\n* [![Redis]][Redis-url]\n\n\n## Prerequisites\n\n- 가상환경 생성\n\n```shell\n python3 -m venv .venv\n```\n\n- 가상환경 활성화\n\n```shell\nsource ./.venv/bin/activate\n```\n\n- 패키지 설치\n\n```shell\npip install -r requirements.txt\n```\n\n- PostgreSQL 설치 및 실행\n- Redis 설치 및 실행\n\n\n## Usage\n\n### 데이터베이스\n\n- PostgreSQL shell 접속\n\n```shell\npsql -U your_username\n```\n\n- 데이터베이스 생성\n\n```SQL\nCREATE\nDATABASE your_dbname;\n```\n\n- Alembic 마이그레이션 적용\n\n```shell\nalembic revision --autogenerate \u0026\u0026 alembic upgrade head\n```\n\n\n### 서버 실행\n\n```shell\nuvicorn app.main:app --reload\n```\n\n\u003chttp://localhost:8000\u003e에 접속합니다.\n\n\n## API\n\nhttp://localhost:8000/docs\n\n### auth\n\n- POST `/register`: 새로운 사용자를 생성합니다.\n\n- POST `/login`: 로그인 후 JWT 토큰을 발급합니다.\n\n### user\n\n- GET `/users/all`: 모든 사용자를 조회합니다.\n\n- GET `/users/{user_id}`: ID로 사용자를 조회합니다.\n\n- DELETE `/users/all`: 모든 사용자를 삭제합니다.\n\n- DELETE `/users/{user_id}`: ID로 사용자를 삭제합니다.\n\n### emissions\n\n- GET `/emissions`: 최근 탄소 배출량 데이터를 조회합니다.\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n[FastAPI]: https://img.shields.io/badge/fastapi-009688?style=for-the-badge\u0026logo=fastapi\u0026logoColor=white\n[FastAPI-url]: https://fastapi.tiangolo.com/\n[PostgreSQL]: https://img.shields.io/badge/postgresql-4169E1?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white\n[PostgreSQL-url]: https://www.postgresql.org/\n[Redis]: https://img.shields.io/badge/redis-FF4438?style=for-the-badge\u0026logo=redis\u0026logoColor=white\n[Redis-url]: https://redis.io/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F23tae%2Ffastapi-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F23tae%2Ffastapi-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F23tae%2Ffastapi-tutorial/lists"}