Full-Stack Restaurant Management Platform
A modern, scalable restaurant management system built with React (TypeScript) frontend and Flask (Python) backend.
This is a complete restaurant management system that provides:
- Restaurant Management: Multiple restaurant support with detailed profiles
- Order Tracking: Real-time order status with visual workflow
- Menu Management: Dynamic menu items with categories and pricing
- Analytics Dashboard: Sales insights with interactive charts
- Responsive Design: Modern UI with Tailwind CSS
RestaurantFlow_bhatiyani/
βββ π backend/ # Flask API Server
β βββ main.py # Main Flask application
β βββ requirements.txt # Python dependencies
β βββ Procfile # Railway deployment config
β βββ deploy.sh # Deployment script
βββ π frontend/ # React TypeScript App
β βββ src/ # Source code
β βββ package.json # Node.js dependencies
β βββ vercel.json # Vercel deployment config
β βββ deploy.sh # Deployment script
βββ π README.md # This file
βββ π DEPLOYMENT.md # Deployment guide
βββ π .gitignore # Git ignore rules
- Node.js 18+ (for frontend)
- Python 3.11+ (for backend)
- Git
git clone <your-repo-url>
cd RestaurantFlow_bhatiyani
# Install backend dependencies
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
# Install frontend dependencies
cd ../frontend
npm install# Terminal 1: Start Backend (Port 8000)
cd backend
source venv/bin/activate
python main.py
# Terminal 2: Start Frontend (Port 3000)
cd frontend
npm start- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Health: http://localhost:8000/health
To access the dashboard, use the following sample credentials:
Email: sample@gmail.com
Password: FoodZap123
- π Frontend: https://restaurant-flow-bhatiyani-frontend-itzr1ekue.vercel.app
- π Backend API: https://sam-resto-production.up.railway.app
# Deploy Backend to Railway
cd backend && railway up
# Deploy Frontend to Vercel
cd frontend && vercel --prodπ Detailed deployment guide: See DEPLOYMENT.md
| Component | Technology | Purpose |
|---|---|---|
| Frontend | React 18 + TypeScript | Modern UI with type safety |
| Styling | Tailwind CSS | Utility-first CSS framework |
| Charts | Chart.js + React Flow | Data visualization |
| Backend | Flask + Python 3.11 | RESTful API server |
| Deployment | Vercel + Railway | Cloud hosting platforms |
| Package Manager | npm + pip | Dependency management |
GET /health- Health checkGET /api/restaurants- List all restaurantsGET /api/restaurants/{id}- Get restaurant detailsGET /api/orders- List all ordersGET /api/orders/{id}- Get order detailsGET /api/menu-items- List all menu itemsGET /api/menu-items/{restaurant_id}- Get restaurant menuGET /api/analytics- Get analytics dataGET /api/analytics/dashboard/{restaurant_id}- Get dashboard metrics
{
"id": 1,
"name": "Spice Garden",
"cuisine": "Indian",
"address": "123 Main St",
"phone": "555-0123"
}- Multi-restaurant support
- Restaurant profiles with contact details
- Cuisine type categorization
- Real-time order status (pending β preparing β completed)
- Customer information management
- Order workflow visualization
- Dynamic menu items by restaurant
- Category-based organization (Main Course, Appetizer, Bread)
- Pricing and availability tracking
- Daily order statistics
- Revenue tracking over time
- Popular items ranking
- Interactive charts and metrics
- Responsive design for all devices
- Professional navigation and layout
- Interactive data visualizations
- TypeScript for enhanced development experience
cd backend
python main.py # Development server with auto-reloadcd frontend
npm start # Development server with hot reload
npm run build # Production build
npm test # Run tests- Backend: Python with Flask best practices
- Frontend: ESLint + TypeScript for code quality
- Styling: Tailwind CSS for consistent design
FLASK_ENV=development
PORT=8000REACT_APP_API_URL=https://your-backend-url.railway.app/api- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature - Commit changes:
git commit -m 'Add new feature' - Push to branch:
git push origin feature/new-feature - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
β Completed Features:
- Full-stack architecture with React + Flask
- Complete restaurant and order management
- Real-time analytics dashboard
- Production deployment on Vercel + Railway
- Responsive design with modern UI
- RESTful API with proper CORS configuration
π Ready for Production Use!
Built with β€οΈ using modern web technologies