Skip to content

giopantsulaia/broadcast-test-laravel

Repository files navigation

Laravel Broadcasting and Pusher Demo

This project is a demonstration of Laravel Broadcasting and Pusher integration for real-time communication on the back-end side. It showcases how to configure Laravel Broadcasting with Pusher to enable real-time events and notifications in Laravel applications.

The purpose of this project is to provide interns with a comprehensive understanding of Laravel Broadcasting and Pusher implementation.

Table of Contents

Prerequisites

  • PHP@8.2 and up
  • _MYSQL@8 and up
  • npm@8 and up
  • composer@2 and up

Tech Stack

Getting Started

1. Clone repository from github:

git clone https://github.com/giopantsulaia/broadcast-test-laravel.git

2. Run composer install in order to install all the dependencies.

composer install

3.Install all the JS dependencies:

npm install

and also:

npm run dev

4. Copy .env from .env.example

cp .env.example .env

Provide .env file all the necessary environment variables:
MYSQL:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=*
DB_USERNAME=*
DB_PASSWORD=*

after setting up .env file, execute:

  php artisan key:generate

5.Configure Pusher, add credentials in .env file:

PUSHER_APP_ID=*
PUSHER_APP_KEY=*
PUSHER_APP_SECRET=*
PUSHER_APP_CLUSTER=*

once you're done interacting with .env file, run

    php artisan optimize:clear

Now, you should be good to go!

Migration

if you've completed getting started section, then migrating database if fairly simple process, just execute:

php artisan migrate

Development

You can run Laravel's built-in development server by executing:

  php artisan serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors