Local Development

Run Lua on your local machine for development purposes.

Requirements

  • PHP 8.1 or later
  • Composer
  • Node.js with npm
  • MySQL

Installation

  1. Clone the repository:
git clone https://github.com/luadotsh/lua.git
cd lua
  1. Install PHP dependencies:
composer install
  1. Install JavaScript dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env

Update your .env file with database and app settings.

  1. Run migrations and seed the database:
php artisan migrate:fresh --seed
  1. Run the front-end build:
npm run dev

💻 Running with Reverb

php artisan reverb:start --host="0.0.0.0" --port=8080 --hostname="lua.sh.test"