A demo application based on Ping CRM to illustrate how to integrate WebRTC on Laravel project with Vue.js and how it works.
Clone the repo locally:
git clone git@github.com:Unix-User/demo.git brokercrm
cd brokercrmInstall PHP dependencies:
composer installInstall NPM dependencies:
npm ciBuild assets:
npm run devSetup configuration:
cp .env.example .envGenerate application key:
php artisan key:generateCreate an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
touch database/database.sqliteRun database migrations:
php artisan migrateRun database seeder:
php artisan db:seedRun the dev server (the output will give the address):
php artisan serveBefore start we need to share the peers between users, in this case we are using socket.io, follow the steps on this project before test the app or create your own:
Also, in some network's the user is behind NAT and may not be able to connect others peers, to solve this we need a TURN/STUN server. This one suits very well with this project
You're ready to go! Visit Brokers CRM in your browser, and login with:
- Username: johndoe@example.com
- Password: secret
To run the Ping CRM tests, run:
phpunit
