Laravel-Pusher Card Game and Leaderboard
Simple card game with a leaderboard to showcase how a realtime table can be created with Pusher and Laravel. To test this app locally:
- Clone this repo --
git clone https://github.com/olayinkaos/pusher-laravel-realtime-table.git
. - Copy
.env.example
to.env
and configure your local environment variables, especially the database and pusher settings. - Install all dependencies --
composer install && npm install
- Generate a new application key -
php artisan key:generate
- Migrate the database tables and seed the database --
php artisan migrate --seed
- Edit in your Pusher App Key in
resources/assets/js/bootstrap.js
. - Run using your local web server, or PHP's built-in option -
php artisan serve