laravel5-angular2
laravel5-angular2 copied to clipboard
Laravel 5 + Angular 2 boilerplate
Laravel 5 + Angular 2 boilerplate

This is a boilerplate for Laravel5 + Angular2 projects. Webpack is used for bundling assets.
Versions
- Laravel 5.3.9
- Angular 2.0.0
- Webpack 1.13.1
Requirements
Installation
- 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.
Development
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.
Database
Set proper credentials in .env file in order to use database.
Run migrations via php artisan migrate.
Production
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.
License
The repository code is open-sourced software licensed under the MIT license.