- node v18.16.0
- php 8.2.5
- composer 2.5.8
Clone the repo locally:
git https://github.com/herdyy69/inertia-react.git
cd inertia-react
Install PHP dependencies:
composer install
Install NPM dependencies:
npm install
Build assets:
npm run dev
Setup configuration:
cp .env.example .env
Generate application key:
php artisan key:generate
Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
Run database migrations:
php artisan migrate
Run database seeder:
php artisan db:seed
Run artisan server:
php artisan serve
Run node server:
npm run dev