dc68ecfe4c2b65a3ff19bf8eb46544e939b30de9
Added initial migrations for accounts, salons, bookings, payments. 0001_initial.py 0001_initial.py 0001_initial.py 0001_initial.py Added demo seeding command. seed_demo.py OTP provider abstraction now includes Twilio + Unifonic adapter scaffolds (not implemented yet, they raise). otp.py Moyasar gateway scaffold added (not implemented yet, raises). gateway.py Added .env loading in settings and expanded .env.example for OTP and Moyasar. settings.py .env.example Captured current gaps/risks in a tracked doc as requested. risks.md Updated README with seeding guidance and risk doc pointer. README.md
Salon Booking Platform
Scaffolded Django + React starter for a salon booking platform.
Backend
Location: backend/
Setup
- Create a virtualenv and install dependencies.
- Copy
backend/.env.exampletobackend/.envand adjust values. - Run migrations and start the server.
Demo data
After migrations, you can seed demo data:
python manage.py seed_demo
Core API endpoints (current scaffold)
POST /api/auth/register/POST /api/auth/token/POST /api/auth/token/refresh/GET/PATCH /api/auth/me/POST /api/auth/otp/request/POST /api/auth/otp/verify/POST /api/auth/social/<provider>/(placeholder)GET /api/salons/GET /api/salons/<id>/GET /api/salons/<id>/services/GET /api/salons/<id>/staff/GET /api/salons/<id>/reviews/GET/POST /api/bookings/GET /api/bookings/<id>/GET/POST /api/payments/
Frontend
Location: frontend/
Setup
- Install dependencies via
npm install. - Run
npm run dev.
The dev server proxies /api to http://localhost:8000.
Project Notes
- Known gaps and risks:
docs/risks.md
Description
Languages
Python
74.5%
JavaScript
21.8%
CSS
3.5%
HTML
0.2%