Skip to content

MuhammadAbdurrohim/mega-projek

Repository files navigation

AIRA - Live Shopping Platform

AIRA adalah platform live shopping yang memungkinkan penjual melakukan live streaming dan menjual produk secara real-time.

Teknologi yang Digunakan

Backend

  • Laravel 10 (REST API)
  • MySQL Database
  • Laravel Sanctum untuk API Authentication
  • ZEGOCLOUD SDK untuk Live Streaming

Frontend Admin Panel

  • React.js 18
  • TypeScript
  • Tailwind CSS
  • Vite

Struktur Folder

backendaira/
├── app/                    # Core application code
│   ├── Http/
│   │   ├── Controllers/   # API Controllers
│   │   ├── Middleware/    # Custom middleware
│   │   └── Resources/     # API Resources
│   ├── Models/            # Database models
│   └── Services/          # Business logic services
├── config/                # Configuration files
├── database/
│   ├── migrations/        # Database migrations
│   └── seeders/          # Database seeders
├── routes/
│   ├── api.php           # API routes
│   └── api_v1_public.php # Public API routes
├── admin-panel/          # React.js admin panel
│   ├── src/
│   │   ├── components/   # React components
│   │   ├── pages/       # Page components
│   │   └── hooks/       # Custom hooks
│   └── package.json
└── docs/                 # Documentation

Fitur Utama

  1. Manajemen Produk

    • CRUD produk dan kategori
    • Upload gambar produk
    • Pengaturan stok dan harga
  2. Live Streaming

    • Integrasi ZEGOCLOUD Web SDK
    • Chat real-time
    • Pinned products
    • Analytics streaming
  3. API Authentication

    • Laravel Sanctum
    • Token-based authentication
    • Role-based access control
  4. Cross-Platform Support

    • REST API untuk Android app
    • Web admin panel

Instalasi

Backend Laravel

  1. Clone repository
git clone <repository-url>
cd backendaira
  1. Install dependencies
composer install
  1. Setup environment
cp .env.example .env
php artisan key:generate
  1. Konfigurasi database di .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=aira_db
DB_USERNAME=root
DB_PASSWORD=
  1. Jalankan migrasi dan seeder
php artisan migrate --seed

Frontend Admin Panel

  1. Masuk ke direktori admin panel
cd admin-panel
  1. Install dependencies
npm install
  1. Setup environment
cp .env.example .env
  1. Update API URL di .env
VITE_API_URL=http://localhost:8085

Menjalankan Aplikasi

Backend

cd backendaira
php artisan serve --port=8085

Backend akan berjalan di http://localhost:8085

Frontend Admin Panel

cd admin-panel
npm run dev

Admin panel akan berjalan di http://localhost:8014

Alur Data

  1. Authentication
Client -> Login Request -> Laravel Sanctum -> JWT Token -> Client
  1. API Request
Client + Token -> API Endpoint -> Middleware -> Controller -> Response
  1. Live Streaming
Admin -> ZEGOCLOUD SDK -> Streaming Server -> Viewers

Akses Admin Panel

Email: superadmin@aira.com
Password: password123

API Documentation

Dokumentasi API lengkap tersedia di docs/api.md

Environment Variables

Backend

APP_URL=http://localhost:8085
FRONTEND_URL=http://localhost:8014
ZEGOCLOUD_APP_ID=your_app_id
ZEGOCLOUD_SERVER_SECRET=your_server_secret

Frontend

VITE_API_URL=http://localhost:8085
VITE_ZEGOCLOUD_APP_ID=your_app_id

Lisensi

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published