Leaderboard with auto-reorientation and list animations in a docker container with ReactJS, TailwindCSS, Laravel, and MySQL.
Needs php composer to be installed. Run 'composer require laravel/sail --dev' to require sail as a dependency. Run 'php artisan sail:install' to install sail. Then run './vendor/bin/sail up' to start the server. On another terminal use 'sail npm install' to install frontend dependencies and 'sail npm run dev' to start the front-end.
If everything is working as intended you should be able to visit the site at http://localhost/
Here is what it should look like:
![image](https://private-user-images.githubusercontent.com/37138564/265468529-37e46d29-f1d7-464a-9cd2-d9ee04132af4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MzI1NDEsIm5iZiI6MTcyNDQzMjI0MSwicGF0aCI6Ii8zNzEzODU2NC8yNjU0Njg1MjktMzdlNDZkMjktZjFkNy00NjRhLTljZDItZDllZTA0MTMyYWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE2NTcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlMGViY2RmZjdmNDIwOWU3Njg0MGZhYTE4ODgwYmQzYjk5N2E5NDI2NjI0MWIzMWY3ZTI2N2UwNTI0MTU2NGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.H-_wNRxj7kTcPP6MJ46qRFP5ayuZIQpEE-uCKkIieXw)
Documenation for APIs
GET '/' returns the index with all players.
GET '/playersForm' returns a form for creating a player.
GET '/players/{id}' returns a form with the player with id.
POST '/api/players' sends form data to create a new player in database.
DELETE '/api/players/{id}' deletes a player with specified id.
PUT '/players/{id}/increment' updates specified player's points by +/-1.