This project is a boilerplate created by Claw Studios to agilize the set up of an Angular + Laravel API based architecture.
You need to fulfill Angular and Laravel requirements.
- Node and NPM installed. Official Documentation
Official Documentation Requirements
- PHP >= 7.1.3
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- BCMath PHP Extension
- Composer Installed Official Documentation
Official Angular-Cli Documentation
$ npm install -g @angular/cli$ cd ui
$ npm installOfficial Laravel Documentation
$ composer global require laravel/installer$ cd be
$ composer installYou can use the npm script:
$ cd ui
$ npm startOr you can do:
$ cd ui
$ ng serve --configuration=cliFor laravel you can serve the project like this:
$ cd be
$ php artisan serveYou can use the npm script:
$ cd ui
$ npm buildOr you can do:
$ cd ui
$ ng build --configuration=production && cp -rf dist/* ../be/public/- NOTE: We do not recommend to change output path (dist/) to be/public because Angular-cli will delete output path folder and then build, if this folder gets delted you will be missing some laravel files.
For laravel production deployment we recommend reading Official Laravel Deployment Documentation since configuration may change depending on the server you are using.
