{"id":26295612,"url":"https://github.com/holms/fb-analyzer-api-gateway","last_synced_at":"2026-04-12T18:35:26.826Z","repository":{"id":282344479,"uuid":"948230157","full_name":"holms/fb-analyzer-api-gateway","owner":"holms","description":"API Gateway service for FB Analyzer","archived":false,"fork":false,"pushed_at":"2025-03-14T03:48:09.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T04:28:54.760Z","etag":null,"topics":["docker","fastapi","fb-analyzer","microservices","python"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/holms.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":"2025-03-14T01:00:30.000Z","updated_at":"2025-03-14T03:48:11.000Z","dependencies_parsed_at":"2025-03-14T04:39:00.564Z","dependency_job_id":null,"html_url":"https://github.com/holms/fb-analyzer-api-gateway","commit_stats":null,"previous_names":["holms/fb-analyzer-api-gateway"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holms%2Ffb-analyzer-api-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holms%2Ffb-analyzer-api-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holms%2Ffb-analyzer-api-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holms%2Ffb-analyzer-api-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holms","download_url":"https://codeload.github.com/holms/fb-analyzer-api-gateway/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681077,"owners_count":20330155,"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":["docker","fastapi","fb-analyzer","microservices","python"],"created_at":"2025-03-15T04:14:32.152Z","updated_at":"2026-04-12T18:35:21.792Z","avatar_url":"https://github.com/holms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FB Analyzer API Gateway\n\nAPI Gateway service for the FB Analyzer project. This service acts as a central entry point for all API requests, routing them to the appropriate backend services.\n\n## Features\n\n- Proxies requests to appropriate backend services\n- Handles CORS and security headers\n- Provides centralized error handling\n- Includes health check endpoint\n- Configurable via environment variables\n\n## Architecture\n\nThe API Gateway serves as the entry point for all client requests and routes them to the appropriate backend services:\n\n- `/api/events/*` - Routes to the Event Fetcher service\n- `/api/auth/*` - Routes to the Authentication service\n\n## Setup\n\n### Prerequisites\n\n- Node.js 18+\n- npm or yarn\n\n### Installation\n\n```bash\n# Install dependencies\nnpm install\n\n# Copy example environment file\ncp .env.example .env\n\n# Start the service\nnpm start\n```\n\n### Environment Variables\n\nCopy the `.env.example` file to `.env` and adjust the values as needed:\n\n```\n# API Gateway Configuration\nPORT=8000\nNODE_ENV=development\n\n# Service URLs\nEVENT_FETCHER_URL=http://fb-analyzer-post-fetcher:8000\nAUTH_SERVICE_URL=http://fb-analyzer-auth-service:8000\n\n# CORS Configuration\nCORS_ORIGIN=*\n```\n\n## Docker\n\nThe service can be built and run using Docker:\n\n```bash\n# Build the image\ndocker build -t fb-analyzer-api-gateway .\n\n# Run the container\ndocker run -p 8000:8000 fb-analyzer-api-gateway\n```\n\n## Development\n\n```bash\n# Run in development mode with auto-reload\nnpm run dev\n```\n\n## Testing\n\n```bash\n# Run tests\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholms%2Ffb-analyzer-api-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholms%2Ffb-analyzer-api-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholms%2Ffb-analyzer-api-gateway/lists"}