moff / laravel5-angular2

Laravel 5 + Angular 2 boilerplate
MIT License
50 stars 20 forks source link

Laravel 5 + Angular 2 boilerplate

alt tag

license

This is a boilerplate for Laravel5 + Angular2 projects. Webpack is used for bundling assets.

Versions

Requirements

Installation

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:

Check resources/views/welcome.blade.php to see how to use those according to active environment. Don't forget to run php artisan config:cache when change environment in .env file.

License

The repository code is open-sourced software licensed under the MIT license.