How saadsaiyed/reel-finder works
Main components
• Client (e.g. your browser, Postman, mobile app)
• reel-finder service (app.py running in a Python environment)
• Environment configuration store (the .env file injected at runtime)
• External Instagram Graph API (Meta’s service)
• Containerization layer (Docker/Docker-Compose)
Relationships and data flows
• The Client issues HTTP requests (e.g. GET /reels, POST /messages) to the reel-finder service.
• The service loads App ID and Secret from environment variables (provided via .env and docker-compose).
• The service formulates calls to the Instagram Graph API to fetch reels or manage inbox.
• Responses from the Graph API return JSON which the service processes and relays back to the client.
• Docker/Docker-Compose orchestrates building and running the container exposing port 5000.
Architectural patterns
• Monolithic microservice: All API logic lives in a single code base (app.py).
• 12-factor app principles: Configuration via env vars, stateless processes.
• Containerized deployment: Dockerfile + docker-compose.yml define build/run steps.
Incorporate relevant technologies
• Python (Flask or equivalent web framework)
• Instagram Graph API (OAuth2 flows, HTTP REST)
• Docker + Docker-Compose
• (requirements.txt lists any additional libraries, e.g. requests, python-dot-env)