A simple RESTful API service inspired by the Ice & Fire API, written by Okiemute Omuta
- MySQL database
- Redis server
- Apache web server
- PHP 7.2.5 or higher
- Create a new MySQL database called "aifa"
- Create a new user MySQL user with username = "aifa" and password = "aifa"
- Grant the new MySQL user ("aifa") full privileges to the "aifa" database
- Open a new terminal window in a folder of your choice
- From the terminal, run the command
git clone https://github.com/kheme/aifa.git - Enter the the "aifa" folder and make a copy of the
.env.examplewith the commandcp .env.example .env - Open the
.envfile in an editor of your choice, and set yourREDIS_PASSWORD - From the terminal window, run
composer update - Return to the terminal window and run the command
php artisan migrate - Finally, from the terminal window start the development server with the command
php -S localhost:8000 -t ./public
To test, open a new terminal window from within the aifa folder and run ./vendor/bin/phpunit --testdox