{"id":31818921,"url":"https://github.com/eehwan/community-api","last_synced_at":"2026-04-12T00:44:48.403Z","repository":{"id":315029990,"uuid":"1047767374","full_name":"eehwan/community-api","owner":"eehwan","description":"CommunityAPI - Hybrid JWT Authentication \u0026 Skillful Pagination with fastapi, redis, psql...","archived":false,"fork":false,"pushed_at":"2025-09-16T08:14:17.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T10:23:07.589Z","etag":null,"topics":["fastapi","jwt","postgresql","redis","sqlalchemy"],"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/eehwan.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T07:17:26.000Z","updated_at":"2025-09-16T08:14:20.000Z","dependencies_parsed_at":"2025-09-16T10:37:10.388Z","dependency_job_id":null,"html_url":"https://github.com/eehwan/community-api","commit_stats":null,"previous_names":["eehwan/community-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/eehwan/community-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eehwan%2Fcommunity-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eehwan%2Fcommunity-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eehwan%2Fcommunity-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eehwan%2Fcommunity-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eehwan","download_url":"https://codeload.github.com/eehwan/community-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eehwan%2Fcommunity-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007043,"owners_count":26084227,"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-11T02:00:06.511Z","response_time":55,"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","jwt","postgresql","redis","sqlalchemy"],"created_at":"2025-10-11T11:21:58.794Z","updated_at":"2025-10-11T11:22:03.380Z","avatar_url":"https://github.com/eehwan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 커뮤니티 서비스\n\nFastAPI와 PostgreSQL, Redis를 활용한 커뮤니티 서비스입니다.\n\n## 주요 특징\n\n### 하이브리드 JWT 인증 시스템\n- **Stateless Access Token** (5분) + **Stateful Refresh Token** (30일)\n- RT Rotation으로 보안 강화\n- HttpOnly 쿠키로 XSS 공격 방지\n- 다중 기기 세션 관리 및 개별/전체 로그아웃 지원\n\n### Clean Architecture\n- 계층 분리를 통한 유지보수성 향상\n- Repository Pattern으로 데이터 접근 추상화\n- Dependency Injection으로 테스트 용이성 확보\n\n### 성능 최적화\n- Redis 기반 게시글 카운트 캐싱\n- 효율적인 페이지네이션 (Offset/Cursor 혼합)\n- 인덱스 최적화된 쿼리 설계\n\n## 개발 환경 설정\n\n### 요구사항\n- Docker \u0026 Docker Compose\n- Python 3.10+\n\n### 실행 방법\n\n```bash\n# 환경 구성 및 빌드\nmake build\n\n# 서비스 시작\nmake up\n\n# 로그 확인\nmake logs\n\n# 서비스 종료\nmake down\n```\n\n### 개발 환경 접속\n\n```bash\n# API 컨테이너 쉘 접속\nmake shell\n\n# Redis CLI 접속\nmake shell-redis\n\n# PostgreSQL 접속\nmake shell-postgres\n```\n\n## 관리 명령어\n\n### 게시글 수 동기화\nRedis에 누적된 게시글 증감량을 DB에 반영합니다.\n\n```bash\n# 수동 실행\nmake board-sync\n```\n\n향후 Airflow 또는 Cron Job으로 주기적 실행 예정\n\n## 기술 스택\n\n- **FastAPI** - 현대적인 비동기 웹 프레임워크\n- **SQLAlchemy** - ORM 및 데이터베이스 추상화  \n- **PostgreSQL** - 메인 데이터베이스\n- **Redis** - 게시글 카운트 캐싱\n- **JWT + Sessions** - 하이브리드 인증 시스템\n\n## API 문서\n\n서버 실행 후 http://localhost/docs 에서 Swagger UI를 확인할 수 있습니다.\n\n## 프로젝트 문서\n\n### 아키텍처\n- [아키텍처 개요](./docs/아키텍처/아키텍처%20개요.md)\n- [데이터베이스 설계](./docs/아키텍처/데이터베이스%20설계.md)  \n- [API 설계](./docs/아키텍처/API%20설계.md)\n\n### 구현\n- [하이브리드 JWT 인증 구현](./docs/구현/하이브리드%20JWT%20인증%20구현.md)\n- [페이지네이션 구현](./docs/구현/페이지네이션%20구현.md)\n- [Redis 캐싱 전략](./docs/구현/Redis%20캐싱%20전략.md)\n\n## 프로젝트 구조\n\n```\ndocs/               # 프로젝트 문서\napp/\n├── main.py         # FastAPI 애플리케이션 엔트리포인트\n├── entities/       # SQLAlchemy 모델\n├── repositories/   # 데이터 접근 계층  \n├── services/       # 비즈니스 로직 계층\n├── routers/        # API 라우터\n├── schemas/        # Pydantic 스키마\n├── infra/          # 인프라 설정\n├── lib/            # 공통 유틸리티\n├── commands/       # 관리 명령어\n└── manage.py       # CLI 도구\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feehwan%2Fcommunity-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feehwan%2Fcommunity-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feehwan%2Fcommunity-api/lists"}