A comprehensive system for managing restaurants, menus, dishes, employees, and more.
- Restaurant management (CRUD operations)
- Menu and dish management
- Employee management
- Revenue tracking
- Search and filtering capabilities
- Modern UI with ShadCn components
- Frontend: Next.js, React, TypeScript, Tailwind CSS
- UI Components: ShadCn UI
- Database: MySQL
- Form Handling: React Hook Form with Zod validation
- Node.js (v18 or higher)
- MySQL database
-
Clone the repository:
git clone https://github.com/sohelshekhIn/Restaurant-Franchise-Management-System.git cd Restaurant-Franchise-Management-System -
Install dependencies:
npm install
-
Set up environment variables: Create a
.env.localfile in the root directory with the following content:DB_HOST=localhost DB_USER=your_db_user DB_PASSWORD=your_db_password DB_NAME=rms DB_PORT=3306 GEMINI_API_KEY=YOUR_GEMINI_API_KEY -
Set up the database:
- Create a MySQL database named
rms - Import the database schema from the
schema.sqlfile
- Create a MySQL database named
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser
/app
/api # API routes
/restaurants # Restaurant pages
/menus # Menu pages
/dishes # Dish pages
/employees # Employee pages
/components
/ui # UI components
/restaurants # Restaurant-specific components
/menus # Menu-specific components
/lib
/db.ts # Database connection
The system uses a relational database with the following main tables:
restaurant: Stores restaurant informationmenu: Stores menu informationdish: Stores dish informationemployee: Stores employee informationaddress: Stores address informationdepartment: Stores department informationrevenue: Stores revenue informationsales: Stores sales information
This project is licensed under the MIT License - see the LICENSE file for details.