salvatorecervone/chatonetoone

Real time Chat one to one

2.0 2024-08-17 15:44 UTC

This package is auto-updated.

Last update: 2024-09-17 16:04:38 UTC


README

Demo

https://github.com/SalvatoreCervone/ChatOnetoOneDemo.git

Required

Laravel version >= 11

https://laravel.com/docs/11.x/installation

Laravel Reverb

https://laravel.com/docs/11.x/reverb#main-content

Carbon

https://carbon.nesbot.com/

Moment

https://momentjs.com/

For use actual css and graph install

Prime vue

https://primevue.org/vite/

Prime vue icons

https://primevue.org/icons/

Installation

Via Composer

composer require salvatorecervone/chatonetoone

Publishs

If you would publish for change normal use of:

1.Controllers 2.Models

you use:

Publish controller

php artisan vendor:publish --tag=controller-chatonetoone

Publish model

php artisan vendor:publish --tag=model-chatonetoone

Its obligatory publish

Publish vue component

php artisan vendor:publish --tag=vue-chatonetoone

Publish event

php artisan vendor:publish --tag=event-chatonetoone

Publish config

php artisan vendor:publish --tag=config-chatonetoone

Publish migration

php artisan vendor:publish --tag=migration-chatonetoone

Migrations

Call migrations

php artisan migrate

Usage

Start server websocket

php artisan reverb:start

Now you have Controllers, Models, Migrations and Vue components for Chat one to one

The components is locate in resources/js/Pages/chatonetoone/

The component ChatComponent is the start component for Chat

Go to route {APP_URL}/chats

and view chat run

Remember

In production change ip, or name, in file .env of REVERB_HOST

KEY -> REVERB_HOST

with the ip where application websocket installed

if the server is one, for application and chat, you would write new env key

APP_URL_NO_SCHEMA=127.0.0.1

and apply with

REVERB_HOST="${APP_URL_NO_SCHEMA}"

Security

If you discover any security related issues, please email salvatore999@virgilio.it instead of using the issue tracker.

Credits

  • [Salvatore Cervone]

License

MIT. Please see the license file for more information. [link-packagist]: https://packagist.org/packages/salvatorecervone/chatonetoone