Skip to content

hackathon365/laravel5-angular2

 
 

Repository files navigation

Laravel 5 + Angular 2 boilerplate

alt tag

license

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

  • PHP >= 5.6.4
  • Composer - Package manager for PHP
  • NPM - Node package manager
  • Gulp

Installation

  • clone repository
  • run installer script via ./install or bash 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.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 run php artisan config:cache when change environment in .env file.

License

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

About

Laravel 5 + Angular 2 boilerplate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 87.8%
  • TypeScript 5.1%
  • JavaScript 3.2%
  • HTML 2.9%
  • Other 1.0%