BinGonichiwa is a real-time 1-on-1 Bingo game built with Laravel. This game utilizes Laravel's Broadcasting feature and a random matching function, allowing two users to play against each other in real-time.
- Real-time 1-on-1 Bingo matches
- Random user matching
- Laravel
- Laravel Echo
- Tailwind CSS
- MySQL
- Redis
- Pusher
- Jetstream
- Clone the repository to your local machine:
https://github.com/Z00One/BinGonichiwa.git
- Navigate into the directory:
cd BinGonichiwa
- Install dependencies:
composer install
npm install
- Set up Pusher: Refer to this site
- Copy
.env
file from.env.example
:cp .env.example .env
- Set the required values for your system:
GAME_*
PUSHER_*={Value of pusher settings}
REDIS_*,
- If you do not have
mysql
orredis
, download them or use docker images to build the necessary environment. - Migrate the database:
php artisan migrate
- Apply tailwind:
npm run dev
ornpm run build
- Start the server:
php artisan serve
- Open your web browser and navigate to
http://localhost:8000
. - Click the Login button to log in with an existing account. Register If you have not account
- On the main page, click the 'Matching Start' button. You will be randomly matched with another user to play a 1-on-1 Bingo game.
- If you are in a window environment, you can type the command
php artisan serve:local
in the console to serve on a private IP. - Bingonichiwa supports English and Japanese.