-
On your development machine, preapare a MySQL DB and environment variables for easy DB configuration as shown in the following shell commands (fake user and password values are shown as example).
-
Create the DB table with migrations at root dir:
DB_HOST=localhost DB_NAME=todos DB_USERNAME=root DB_PASSWORD=passpasspass php artisan db:migrate
- Seed the DB for easy testing at root dir:
DB_HOST=localhost DB_NAME=todos DB_USERNAME=root DB_PASSWORD=passpasspass php artisan db:seed
- Install frontend dependencies:
cd public && bower install
- Start an artisan development server at root dir:
DB_HOST=localhost DB_NAME=todos DB_USERNAME=root DB_PASSWORD=passpasspass php artisan serve
- In your browser (supports Chrome and FireFox) go to:
http://localhost:8000/
PHP 7.0.25 (cli)
Laravel Framework version 4.2.22
MySQL Server version: 5.7.20 Homebrew
Ember.js 1.10.0
Node 8.8.1
NPM 5.4.2
Bower 1.8.2
The HTML is in "/public/home.php" to avoid CORS problem