A production-deployed Flask backend demonstrating secure authentication, Stripe payments, signed webhooks, asynchronous processing and AI-powered backend capabilities.
The project focuses on the backend systems required for authentication, billing, AI services and reliable asynchronous processing.
JWT-secured registration, login and protected dashboard endpoints with password hashing and validation.
Stripe Checkout integration for payment creation, success handling and cancellation flows.
Stripe webhook signatures are verified and events are handled using idempotent database processing.
Celery workers process background tasks through Redis without blocking the main Flask application. Celery Beat schedules recurring jobs.
Persistent application data and payment state are stored in PostgreSQL, with pgvector enabled for vector storage and retrieval.
Flask, PostgreSQL, Redis, Celery Worker and Celery Beat run as isolated services using Docker Compose.
Google Gemini powers the AI assistant, with provider-native function calling for application tools and AI usage tracking.
Gemini embeddings are stored as 1,536-dimensional vectors in PostgreSQL pgvector to support tenant-scoped knowledge retrieval.
A scheduled Celery task checks the billing outbox and processes queued events asynchronously, with processing results tracked by the backend.
The landing page documents the main publicly accessible endpoints while the application continues to expose the complete backend API.
A JWT-authenticated user requests a checkout session.
The user completes payment through Stripe Checkout.
Stripe sends a signed payment event to AbyFlow.
The event is queued through Redis and processed asynchronously by a Celery worker.
PostgreSQL stores the resulting payment and subscription state.
Containerized backend deployed on AWS EC2 behind Nginx.
┌────────────────────────┐
│ Client │
└────────────┬───────────┘
│
▼
┌────────────────────────┐
│ Nginx │
│ HTTPS / Proxy │
└────────────┬───────────┘
│
▼
┌────────────────────────┐
│ Flask + Gunicorn │
│ AbyFlow API │
└──────┬──────┬──────┬───┘
│ │ │
┌───────────┘ │ └─────────────┐
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ PostgreSQL │ │ Redis │ │ Google Gemini │
│ + pgvector │ │ Task Broker │ │ AI API │
└─────────────────┘ └────────┬────────┘ └─────────────────┘
│
┌─────────┴─────────┐
▼ ▼
┌─────────────────┐ ┌─────────────────┐
│ Celery Worker │ │ Celery Beat │
│ Async Processing│ │ Task Scheduler │
└────────┬────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ PostgreSQL │
│ State / Outbox │
└─────────────────┘
Stripe Checkout and signed webhooks integrate with the API.