made with AngularJs and Laravel 5
-
create a virtual host for apache like shopapp/.example-apache.conf:
-
create database in mysql
mysql> create database shopapp character "utf8";
- complete configuration file .env in backend
$ cd shopapp/api/
$ cp .example.env .env
- install backend dependencies using composer:
$ cd shopapp/api/
$ composer install
- run database installation with laravel and mock data
$ php artisan migrate
$ php artisan db:seed
- generate app_key
$ php artisan key:generate
copy/paste the generated key to .env with the name APP_KEY=...yourKey...
- give file access to write logs
$ sudo chmod -R 0777 shopapp/api/storage/
- test the api from browser
http://shopapp.local/v1.0/user
- install front end dependencies using bower:
$ cd shopapp/web-app/
$ bower install
- test the app from browser
http://shopapp.local/