This is backend for tic tac tow api made Laravel and reverb
Make sure you have the following installed on your machine:
- php 8.2 ( or later)
- Mysql or mariadb or you can use sqlite (change env accordingly)
-
Clone the repository:
git clone https://github.com/shiv122/tic-tac-toe-backend.git cd tic-tac-toe-backend
-
Install dependencies:
composer install -
Run Migration:
php artisan migrate -
Set up environment variables:
Rename
.env.exampleto.env -
Setup Reverb:
php artisan install:broadcastingand then run itphp artisan reverb:start --port=6001 -
Setup Redis Queue (optional):
You will only need this if you are using redis as queue driver
QUEUE_CONNECTION=redis
change this tosyncif you dont want a to setupif you are using queue run
php artisan queue:work --sleep=0 -
Run laravel app:
php artisan:serve
Make sure you have same value in front end. if you change it , put same value in
plugins\laravel-echo.client.js in frontend
REVERB_APP_ID=610705
REVERB_APP_KEY=yl9nwwgxhaxgobgbej11
REVERB_APP_SECRET=sroopccitwua5a0agsa3
REVERB_HOST="lara-api.ddev.site"
REVERB_PORT=6001
REVERB_SCHEME=http`Feel free to contribute to this project by submitting issues or pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please reach out to rootshiv.dev.
Happy coding!