- As an administrator when I am editing the site, I must be able to securely add casinos name, location and opening times
- As an administrator I must be able to edit casinos details
- As an administrator I can delete a casino
- As a user I should be able to search for the nearest casino to my current location
- As a user I should be able to see casinos on a map
- Git clone locally on your developer instance
- Run
composer install
in root directory of application to install dependencies (composer.lock used to lock dependencies) - Create VHOST pointing to public folder of application. If using, homestead would be:
serve bede-casino.dev ~/Code/apps/bede-casino.dev/public
- Update host file with new host bede-casino.dev
- Update .env file with your MySQL details in root
- Run
php artisan migrate
(to create database tables) - Run
php artisan db:seed
(to create test data) - Access application - Note! If you wish to manage casinos, create an account top right.
Mockery has been used - three tests added covering CasinosApiController
.
Run from root of application:
phpunit