This project is a role-based food ordering system built as part of the Slooze take-home challenge.
It allows different users (Admin, Manager, Member) to perform actions based on their roles and country restrictions.
- Backend: NestJS
- API: GraphQL (Apollo)
- Database: PostgreSQL (Local)
- ORM: Prisma
- Language: TypeScript
- ✅ User creation with role and country
- ✅ Role-based data modeling (Admin, Manager, Member)
- ✅ Country-based access (India, America)
- ✅ GraphQL API setup
- ✅ Prisma ORM integration
- ✅ PostgreSQL local database setup
| Feature | Admin | Manager | Member |
|---|---|---|---|
| View restaurants | ✅ | ✅ | ✅ |
| Create order | ✅ | ✅ | ✅ |
| Checkout & pay | ✅ | ✅ | ❌ |
| Cancel order | ✅ | ✅ | ❌ |
| Manage payment methods | ✅ | ❌ | ❌ |
Users can only access data related to their assigned country:
- INDIA
- AMERICA
git clone <your-repo-url>
cd slooze-food-app
cd backend