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
./installorbash 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.jsfile. - CSS-files into
all.cssfile.
Check
resources/views/welcome.blade.phpto see how to use those according to active environment. Don't forget to runphp artisan config:cachewhen change environment in.envfile.
The repository code is open-sourced software licensed under the MIT license.
