This is a complete fullstack application for managing restaurants.
- NestJS - Backend framework
- PostgreSQL - Database
- Prisma - ORM
- JWT - Authentication
- bcrypt - Password hashing
- React - Frontend framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- React Router - Routing
- React Hook Form - Form handling
- Axios - HTTP client
- Lucide React - Icons
- β User registration
- β User login
- β User management
- β Roles (ADMIN, SUPER_ADMIN, CASHER, WAITER)
- β Add restaurant
- β Edit restaurant
- β Delete restaurant
- β View restaurant details
- β Add product
- β Edit product
- β Delete product
- β Filter by categories
- β View orders
- β Manage order status
- β Filter by restaurant
- β Add region
- β Edit region
- β Delete region
- β Add category
- β Edit category
- β Delete category
- β Add debt
- β Edit debt
- β Delete debt
- π JWT authentication
- π₯ Role-based access control
- π± Responsive design
- π Real-time search
- π Dashboard with statistics
- π¨ Modern UI/UX
- β‘ Fast performance
- π Auto refresh tokens
FullStackRestarauntSystem/
βββ restaraunt-backend/ # Backend (NestJS)
β βββ src/
β β βββ auth/ # Authentication
β β βββ user/ # User management
β β βββ restaurant/ # Restaurant management
β β βββ product/ # Product management
β β βββ order/ # Order management
β β βββ region/ # Region management
β β βββ category/ # Category management
β β βββ debt/ # Debt management
β β βββ withdraw/ # Withdraw management
β βββ prisma/ # Database schema
βββ restaraunt-frontend/ # Frontend (React)
βββ src/
β βββ components/ # Reusable components
β βββ pages/ # Page components
β βββ contexts/ # React contexts
β βββ services/ # API services
β βββ types/ # TypeScript types
βββ public/ # Static assets
- Database: PostgreSQL must be installed
- Node.js: Version 18+ required
- Ports: Ports 3000 (backend) and 5173 (frontend) must be available
- Environment: Configure the
.envfile correctly
If you encounter issues:
- Check database connection
- Verify ports are available
- Ensure node modules are installed
- Verify environment variables are configured correctly