Skip to content

Starter template using Laravel and Svelte with InertiaJS

License

Notifications You must be signed in to change notification settings

ronsen/laravel-svelte-starter

Repository files navigation

laravel-svelte-starter

Starter template using Laravel and Svelte.

This starter template includes:

  • Laravel 11
  • Svelte 4
  • Inertia
  • Tailwind CSS
  • sqlite

Installation

Run following commands:

composer install
npm install
cp .env.example .env
php artisan key:generate

Migrate database:

php artisan migrate --seed

To try this app, run these commands on seperate terminal:

npm run dev
php artisan serve

Deployment

Build the app:

npm run buid

Sign in with email [email protected] and password password.

Docker

Installation using Docker:

docker build -t laravel-svelte-starter .
docker run -p 80:8000 -d laravel-svelte-starter

Open http://localhost/ on your browser.