This starter kit with Vue, Tailwindcss, Laravel modular architecture
Creating modules with composer
package nWidart/laravel-modules
with custom stubs
See module documentation here
- Clone the project
git clone https://github.com/HamasakiBrain/laravel-vue-tailwind-modules-starterkit.git
- Go to the project directory
cd laravel-vue-tailwind-modules-starterkit
- Install all dependencies
npm run init
- Copy .env.example to .env
cp .env.example .env
- Configure db connection in
.env
- Migrate migrations
php artisan migrate
- Start the server
npm run dev
- Build the server
npm run build
- Build your modules
Example
cd /Modules/{Blog}/ && npm run build
where {Blog} - your module name
Then, go to root folder your project and run build app
cd /project/ && npm run build
And change local
to production
in .env
const APP_ENV
Example
APP_ENV=production