This is a boilerplate for Laravel5 + Angular2 projects. Webpack is used for bundling assets.
- Laravel 5.3.9
- Angular 2.0.0
- Webpack 1.13.1
- clone repository
- run installer script via
./install
orbash install
Installer script is a bash script that runs list of commands one-by-one. It is created to simplify installation process.
At this point you can start developing your app.
Run development script via ./develop
or bash develop
.
Development script is a bash script that runs development php server and watches for changes with Gulp and Browsersync.
Set proper credentials in .env
file in order to use database.
Run migrations via php artisan migrate
.
Run gulp --production
to merge and minify:
- JavaScript-files into
all.js
file. - CSS-files into
all.css
file.
Check
resources/views/welcome.blade.php
to see how to use those according to active environment. Don't forget to runphp artisan config:cache
when change environment in.env
file.
The repository code is open-sourced software licensed under the MIT license.