Skip to main content

Local Setup

Prerequisites

  • PHP 8.1+
  • Composer
  • Node.js 18+
  • MySQL 5.7+/8+
  • Git

Laravel Backend Setup

cd /home/makelo/.openclaw/workspace/projects/adi-jaya/adi-jaya-master
composer install
cp .env.example .env
php artisan key:generate

Update .env:

  • DB_*
  • QUEUE_CONNECTION (recommended database for parity)
  • FIREBASE_CREDENTIALS
  • TMD_BSA_USERNAME/TMD_BSA_PASSWORD

Migration & seed:

php artisan migrate
php artisan db:seed --class=OrderGiverSeeder
php artisan db:seed --class=AdminSeeder

Run app:

php artisan serve
php artisan queue:work
npm install
npm run dev

Setup Site Docs

cd /home/makelo/.openclaw/workspace/projects/adi-jaya/docs-site
npm install
npm run build
npm run serve -- --port 8088 --host 0.0.0.0

Smoke Check

  • /admin/auth/login can be opened.
  • Dummy login (if seeder is active): headm / password.
  • API login v1 return token.
  • Docs can be accessed at http://localhost:8088.

Verification Notes

  • Status: Partial
  • Scope: The artisan step has not been validated in the audit environment because the php binary is not installed.
  • Action: Retest the setup on a standard dev machine that has the full PHP stack.