Based on Laravel, Socket.io and Redis
Clone the repo and follow below steps.
- Run
composer install
- Copy
.env.example
to.env
- Set valid database credentials of env variables
DB_DATABASE
,DB_USERNAME
, andDB_PASSWORD
- Run
php artisan key:generate
to generate application key - Run
php artisan migrate --seed
to seed your database - Set
BROADCAST_DRIVER=redis
- Add
CHAT_CONTENT_KEY
to.env
That's it...
Run the command php artisan serve
Run the command node socket.js
or pm2 start socket.js
to start socket server
Open your server /api/v1
For Api Documentation
Can copy host_url/docs/api-docs.json
to import collection from swagger to postman like http://127.0.0.1:8000/docs/api-docs.json
Phone: 01020304050
Password: password1
Phone: 01030405060
Password: password2