Installation Guide

Complete setup instructions for all platforms

Back to Home

System Requirements

Backend

  • PHP 8.1+
  • MySQL 8.0+
  • Composer 2.x
  • Laravel 10.x

Frontend

  • Node.js 18+
  • npm 9+
  • React 18.x
  • Vite 4.x

Mobile

  • Flutter 3.x
  • Dart 3.x
  • Android Studio
  • Xcode (iOS)

Backend Installation

Step 1: Clone Repository

git clone https://github.com/your-repo/restaurant-erp.git
cd restaurant-erp/backend

Step 2: Install Dependencies

composer install

Step 3: Environment Configuration

cp .env.example .env
php artisan key:generate

Edit .env file with your database credentials:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=restaurant_erp
DB_USERNAME=root
DB_PASSWORD=your_password

Step 4: Database Setup

php artisan migrate
php artisan db:seed

Step 5: Start Server

php artisan serve

Backend will run at: http://localhost:8000

Frontend Installation

Step 1: Navigate to Frontend

cd ../frontend

Step 2: Install Dependencies

npm install

Step 3: Configure API URL

Create .env file:

VITE_API_URL=http://localhost:8000/api

Step 4: Start Development Server

npm run dev

Frontend will run at: http://localhost:5173

Step 5: Build for Production

npm run build

Mobile App Installation

Step 1: Navigate to Mobile

cd ../mobile

Step 2: Install Flutter Dependencies

flutter pub get

Step 3: Configure API URL

Edit lib/config/api_config.dart:

const String API_URL = 'http://your-server-ip:8000/api';

Step 4: Run on Device/Emulator

flutter run

Step 5: Build APK (Android)

flutter build apk --release

Installation Complete!

Your Restaurant ERP system is now ready to use.