An open API service indexing awesome lists of open source software.

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.

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.

![Animação](https://user-images.githubusercontent.com/38821945/204041845-6767c731-fefe-4970-a84b-777a8c0f5afa.gif)

## 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
```