https://github.com/unix-user/brokerscrm
A demo application based on Ping CRM to illustrate how to integrate WebRTC on Laravel project with Vue.js and how it works.
https://github.com/unix-user/brokerscrm
laravel php vue webrtc
Last synced: 2 months ago
JSON representation
A demo application based on Ping CRM to illustrate how to integrate WebRTC on Laravel project with Vue.js and how it works.
- Host: GitHub
- URL: https://github.com/unix-user/brokerscrm
- Owner: Unix-User
- License: mit
- Created: 2022-11-25T17:45:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-25T19:37:28.000Z (over 3 years ago)
- Last Synced: 2025-08-22T06:51:28.434Z (10 months ago)
- Topics: laravel, php, vue, webrtc
- Language: PHP
- Homepage: https://brokerscrm.udianix.com.br/
- Size: 747 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Broker's CRM
A demo application based on Ping CRM to illustrate how to integrate WebRTC on Laravel project with Vue.js and how it works.

## Installation
Clone the repo locally:
```sh
git clone git@github.com:Unix-User/demo.git brokercrm
cd brokercrm
```
Install PHP dependencies:
```sh
composer install
```
Install NPM dependencies:
```sh
npm ci
```
Build assets:
```sh
npm run dev
```
Setup configuration:
```sh
cp .env.example .env
```
Generate application key:
```sh
php artisan key:generate
```
Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
```sh
touch database/database.sqlite
```
Run database migrations:
```sh
php artisan migrate
```
Run database seeder:
```sh
php artisan db:seed
```
Run the dev server (the output will give the address):
```sh
php artisan serve
```
Before 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:
[server](https://github.com/Unix-User/socketio-srv)
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
[Coturn - TURN/STUN server](https://github.com/coturn/coturn)
You're ready to go! Visit Brokers CRM in your browser, and login with:
- **Username:** johndoe@example.com
- **Password:** secret
## Running tests
To run the Ping CRM tests, run:
```
phpunit
```