A Flask + Supabase REST API backend for a forum system with chat support.
Designed for easy integration with any frontend (React, Flutter, etc.).
- User Management: Register, authenticate, manage profiles.
- Forum: Create posts, reply to threads.
- Chat: Send and retrieve chat messages (real-time ready with Supabase).
- REST Principles: Clean, JSON-based endpoints for frontend consumption.
Open modal.mwb
in MySQL Workbench (or any .mwb
viewer) to view tables and relationships.
-
Clone the repository
git clone <repo_url> cd <project_folder>
-
Create a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up Supabase
- Create a Supabase project.
- Create tables matching
modal.mwb
schema. - Retrieve your
SUPABASE_URL
andSUPABASE_KEY
.
-
Create a
.env
file:SUPABASE_URL=<your_supabase_url> SUPABASE_KEY=<your_supabase_key> FLASK_APP=run.py FLASK_ENV=development
-
Start the API server
flask run
(If your entry file differs, adjust accordingly, e.g.,
python run.py
.)
Use Postman or Insomnia to test endpoints locally.
MIT