Minesweepr classic game API developed using Laravel.
- Clone this repository.
- Create a MySQL database and update
.env
file with credentials. - Run
$ composer install
- Execute migrations
$ php artisan migrate
- Generate key
$ php artisan key:generate
- Generate Passport keys
$ php artisan passport:keys
- And finally
$ php artisan passport:client --personal
Endpoints documentation was generated with Postman and it's available:
The API it's focused on resolve and deliver to client all the information clean and processed. Also it's secure in terms that hidden squares are delivered with hidden content.
API routes are secured with Passport to implement JWT.
There are Feature Tests for game start and display square actions.
- Implement Exceptions to handle errors.
- Tests for user registration and login
MIT