AIRA adalah platform live shopping yang memungkinkan penjual melakukan live streaming dan menjual produk secara real-time.
- Laravel 10 (REST API)
- MySQL Database
- Laravel Sanctum untuk API Authentication
- ZEGOCLOUD SDK untuk Live Streaming
- React.js 18
- TypeScript
- Tailwind CSS
- Vite
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
-
Manajemen Produk
- CRUD produk dan kategori
- Upload gambar produk
- Pengaturan stok dan harga
-
Live Streaming
- Integrasi ZEGOCLOUD Web SDK
- Chat real-time
- Pinned products
- Analytics streaming
-
API Authentication
- Laravel Sanctum
- Token-based authentication
- Role-based access control
-
Cross-Platform Support
- REST API untuk Android app
- Web admin panel
- Clone repository
git clone <repository-url>
cd backendaira
- Install dependencies
composer install
- Setup environment
cp .env.example .env
php artisan key:generate
- 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=
- Jalankan migrasi dan seeder
php artisan migrate --seed
- Masuk ke direktori admin panel
cd admin-panel
- Install dependencies
npm install
- Setup environment
cp .env.example .env
- Update API URL di .env
VITE_API_URL=http://localhost:8085
cd backendaira
php artisan serve --port=8085
Backend akan berjalan di http://localhost:8085
cd admin-panel
npm run dev
Admin panel akan berjalan di http://localhost:8014
- Authentication
Client -> Login Request -> Laravel Sanctum -> JWT Token -> Client
- API Request
Client + Token -> API Endpoint -> Middleware -> Controller -> Response
- Live Streaming
Admin -> ZEGOCLOUD SDK -> Streaming Server -> Viewers
Email: superadmin@aira.com
Password: password123
Dokumentasi API lengkap tersedia di docs/api.md
APP_URL=http://localhost:8085
FRONTEND_URL=http://localhost:8014
ZEGOCLOUD_APP_ID=your_app_id
ZEGOCLOUD_SERVER_SECRET=your_server_secret
VITE_API_URL=http://localhost:8085
VITE_ZEGOCLOUD_APP_ID=your_app_id