Skip to content
/ vilt-boilerplate Public template

Laravel + Jetstream Teams + Vue 3 + Inertia 1.0

Notifications You must be signed in to change notification settings

hotmeteor/vilt-boilerplate

Repository files navigation

VILT Boilerplate

This VILT (Vue, Inertia.js, Laravel, Tailwind) stack boilerplate is a ready-to-go starting point for your next project.

It's actively used and maintained by Adam Campbell @hotmeteor.


Requirements

Since this is a Laravel-based boilerplate you'll need a compatible environment.

See the Laravel installation docs for detailed instructions: https://laravel.com/docs/10.x/installation

What's inside

This is a Laravel 10 app with:

  • Jetstream, for Teams
  • Vue + Inertia.js + Tailwind frontend

It also comes with the following tools and packages:

PHP

Frontend

Installation

Make sure your environment is configured as described in the Requirements section.

  1. In your terminal, go to your project folder
  2. Run composer install
  3. Run npm install
  4. Copy .env.example to .env and configure as necessary (local URL, database connection, etc)
  5. Run php artisan key:generate

Usage

Development

The development environment leverages Vite, as described in the Asset Bundling section of Laravel's docs.

To run the local server, simply run npm run dev

Code Style

PHP

This boilerplate comes with a .github/workflows/tidy.yml file that will trigger Github Actions to format your PHP code using Pint whenever code is pushed to Github.

If you want to format your PHP code locally you can run composer tidy. This will both clean up your formattting and run the IDE helper scripts.

Frontend

If you want to format your Vue or JS files locally you can run npm run prettier. This will clean up your formattting, plus reorganize imports and reorganize Tailwind classes.


Credits

  • Adam Campbell created and manages this thing
  • All of the people from the aforementioned packages, libraries, tools, etc. that did all the hard and important work
  • All Contributors

Made with contributors-img.

License

The MIT License (MIT). Please see License File for more information.