{"id":10852,"date":"2023-03-29T11:00:00","date_gmt":"2023-03-29T11:00:00","guid":{"rendered":"https:\/\/phpmagazine.net\/?p=10852"},"modified":"2023-03-21T15:20:05","modified_gmt":"2023-03-21T15:20:05","slug":"get-started-with-laravel-volt-a-free-full-stack-laravel-app-with-livewire-alpine-js","status":"publish","type":"post","link":"https:\/\/phpmagazine.net\/2023\/03\/get-started-with-laravel-volt-a-free-full-stack-laravel-app-with-livewire-alpine-js.html","title":{"rendered":"Get Started with Laravel Volt: A Free Full Stack Laravel App with Livewire & Alpine.js"},"content":{"rendered":"\n
Laravel Volt is an admin dashboard template that offers a comprehensive design and development toolbox for personal and commercial projects. It comes with handcrafted UI elements tailored for Bootstrap 5 and an out-of-the-box Laravel backend. With Livewire integration, you can create dynamic interfaces without leaving your favorite framework. And when combined with Alpine.js, you have the perfect combo for your next big project.<\/p>\n\n\n\n
In this article, we’ll provide a brief overview of Laravel Volt, its features, and a getting started guide to help you set up the project on your local development environment. <\/p>\n\n\n\n
Before you start, ensure you have an Apache local environment with PHP and MySQL installed. You will also need to install Composer, a dependency manager for PHP.<\/p>\n\n\n\n
volt-dashboard-master<\/code> folder into your projects folder. Rename the folder to your project’s name.<\/li>\n\n\n\n- Ensure Node and Composer are locally installed.<\/li>\n\n\n\n
- Run the following commands to download all project dependencies:<\/li>\n<\/ol>\n\n\n\n
composer install<\/code><\/pre>\n\n\n\nNow before running npm, and if you are running a new npm version I’ll recommend you doing some updates before and use gulp-dart-sass instead of gulp-sass<\/p>\n\n\n\n
\n- Replace
"gulp-sass": "4.0.2"<\/code> with "gulp-dart-sass": "^1.0.2"<\/code> in your devDependencies<\/code> in your package.json<\/code> file. The gulp-dart-sass<\/code> package is a drop-in replacement for gulp-sass<\/code> that uses the Dart Sass compiler, which is more compatible with newer Node.js versions.<\/li>\n\n\n\n- Replace
"node-sass": "^6.0.0"<\/code> with "sass": "^1.43.4"<\/code> in your dependencies<\/code> in your package.json<\/code> file.<\/li>\n\n\n\n- Update your
scripts<\/code> section in package.json<\/code> to replace node-sass<\/code> with sass<\/code>:<\/li>\n<\/ol>\n\n\n\n"scripts": {\n "scss": "sass resources\/scss:css",\n ...\n}<\/code><\/pre>\n\n\n\nnpm install<\/code><\/pre>\n\n\n\n\n- To compile all the SCSS files under
resources\/scss<\/code> into a single CSS file located in public\/css<\/code>, run the following command:<\/li>\n<\/ol>\n\n\n\nnpm run scss<\/code><\/pre>\n\n\n\n\n- Copy
.env.example<\/code> to .env<\/code> and update the configurations (mainly the database configuration).<\/li>\n\n\n\n- In your terminal, run
php artisan key:generate<\/code>.<\/li>\n\n\n\n- Run
php artisan migrate --seed<\/code> to create the database tables and seed them.<\/li>\n\n\n\n- Run
php artisan storage:link<\/code> to create the storage symlink (if you’re using Vagrant with Homestead for development, remember to ssh into your virtual machine and run the command from there).<\/li>\n<\/ol>\n\n\n\nUsage<\/h2>\n\n\n\n
To start testing the theme, register as a user or log in using one of the default users:<\/p>\n\n\n\n
\n- admin type – admin@paper.com with the password ‘secret’<\/li>\n\n\n\n
- creator type – creator@paper.com with the password ‘secret’<\/li>\n\n\n\n
- member type – member@paper.com with the password ‘secret’<\/li>\n<\/ul>\n\n\n\n
Make sure to run the migrations and seeders for the above credentials to be available. Check the documentation <\/a>for more details about features and usage of the Laravel volt.<\/p>\n\n\n\nLaravel Volt Pro Features<\/h2>\n\n\n\n
Laravel Volt offers a plethora of features, including:<\/p>\n\n\n\n
\n- 100+ handcrafted UI components tailored for Bootstrap 5 with Vanilla JS<\/li>\n\n\n\n
- 11 example pages to get you started<\/li>\n\n\n\n
- 3 lightweight plugins: datepicker, notification, and charts library<\/li>\n\n\n\n
- SaaS files & Gulp commands<\/li>\n\n\n\n
- Fully-functional authentication system, register and user profile editing features built with Laravel<\/li>\n\n\n\n
- Livewire & Alpine.js integration<\/li>\n\n\n\n
- Free for peronal and commercial projects<\/li>\n<\/ul>\n\n\n\n