This API returns a list of events and linked participants. To get started follow the installation instructions below.
- Clone this repository
git clone https://github.com/greg162/ttt-coding-challenge.git
- Install the required libraries by navigating to the project folder and running
composer install
- Create a .env file and add your database details. NOTE: This setup was tested with a MySQL database.
- Add the required tables and fields by running the database migrations
php artisan migrate
- Populate the database with the event and participant data.
php artisan db:seed
- Run the unit tests to make sure everything is setup as expected
php artisan test
- Go to the event API (/api/events) endpoint and check everything is working as expected.
- Import open-api.json into Postman and begin testing!