hexlay / inertia-project-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inertia example project

Stack: Laravel 10 + InertiaJS + Vue 3 (Composition)

Styles are based on Breeze, TailwindCSS and Flowbite

Requirements:

  • Docker
  • Composer 2
  • PHP 8.2

Installation:

Without composer installed:

  • docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php82-composer:latest \ composer install --ignore-platform-reqs

With composer installed:

  • composer install
  • cp .env.example .env

To make sure sail is always available, you may add this to your shell configuration file in your home directory, such as ~/.zshrc or ~/.bashrc, and then restart your shell.

alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'

  • sail up -d
  • sail artisan key:generate
  • sail artisan migrate
  • sail artisan db:seed
  • npm install
  • npm run dev

About


Languages

Language:PHP 66.8%Language:Vue 32.1%Language:JavaScript 0.9%Language:Blade 0.2%Language:CSS 0.0%