https://xxxxx.supabase.co)eyJhbG...)database/schema.sqldatabase/seed.sql for test datacd backend
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Create .env file
cp .env.example .env
# Edit .env with your Supabase credentials
nano .env # or use your preferred editor
.env:SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-anon-key-here
SECRET_KEY=your-secret-key-for-jwt-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
source venv/bin/activate
uvicorn main:app --reload --host 0.0.0.0 --port 8000
Backend will run on: http://localhost:8000
API Docs: http://localhost:8000/docs
cd frontend
# Install dependencies
npm install
# Create .env.local (optional)
echo "NEXT_PUBLIC_API_URL=http://localhost:8000" > .env.local
# Run development server
npm run dev
Frontend will run on: http://localhost:3000
admin@amanga.id / admin123finance@amanga.id / admin123POST /register - Register new userPOST /token - LoginGET /me - Get current userPOST /payment/upload - Upload payment proofGET /payment/my - Payment historyGET /payment/credits - Service creditsGET /admin/payments/pending - Pending paymentsPOST /admin/payment/{id}/approve - Approve paymentPOST /admin/payment/{id}/reject - Reject paymentPOST /admin/payment/{id}/flag - Flag as fraudGET /health - Server status# Check if Supabase credentials are correct
# Check if schema.sql was run in Supabase SQL Editor
# Check port 8000 is not in use
lsof -i :8000
# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install
database/schema.sql in Supabaseadmin123aman-ga-poc/
βββ backend/ # FastAPI backend
β βββ main.py # API endpoints
β βββ auth.py # JWT authentication
β βββ database.py # Supabase client
β βββ models.py # Pydantic schemas
β βββ services/ # Business logic
β βββ payment.py # Payment processing
β βββ fraud.py # Fraud detection
β βββ notification.py
βββ frontend/ # Next.js frontend
β βββ pages/ # React pages
β β βββ index.js # Login/Register
β β βββ dashboard.js
β β βββ admin.js
β β βββ payment.js
β βββ components/ # Reusable components
βββ database/ # SQL schemas
βββ schema.sql
βββ seed.sql
For issues or questions, create an issue on GitHub.