A open-source ranked rock paper scissor game using Laravel, VueJS and Websocket
Install Composer dependencies:
composer install
Install NPM dependencies:
npm install
Run NPM in dev mode:
npm run dev
Run laravel migrations:
php artisan migrate
Run laravel artisan local server:
php artisan serve
Tip: If you want to run a server on your local network to test the websocket functionality, run it using the following command:
php artisan serve --host 0.0.0.0 --port {any port that you want (without the brackets)}
With this command any browser using the same network as you will be able to access the project using http://youripv4addres:port
You will have to change websocket url in front-end too.
Finally run the websocket server:
php artisan run:websocket
This command will run the websocket server in port 5050.
-
User login -
User registration -
Online normal game matchmaking -
Base game mechanics - User game history
- Online ranked game matchmaking
- User ranked points (used to balance ranked matchmaking)
- Leaderboard
- Custom game creation
- User games info (total games, total wins, total loses)
- User friend system (maybe?)
PHP: 7.4.29
Laravel Framework: 8.83.26