How to run this project

Depends upon

  • PHP 8 or higher
  • NodeJS 10 or higher
  • Composer

Without Docker

  1. Install composer dependencies
composer install
  1. Install node dependencies
yarn install
or
npm install
  1. Build frontend asset
yarn dev
or
npm run dev
  1. Copy .env.example to .env and fill out the database informations

  2. Run migrations and seeders

php artisan migrate --seed
or
php artisan migrate
php artisan db:seed
  1. Run Laravel server
php artisan serve

You can access the project at http://localhost:8000

With Docker

  1. Run Laravel Sail
./vendor/bin/sail up -d
  1. Run migrations and seeders
./vendor/bin/sail artisan migrate --seed

How to run test cases

Without Docker

./vendor/bin/phpunit

With Docker

./vendor/bin/sail test