Skip to content

A straightforward simple messaging application built using Laravel and Pusher

License

Notifications You must be signed in to change notification settings

Reaper1994/laravel-pusher-chat-app

Repository files navigation

laravel-pusher-chat-app

A Laravel Pusher Chat App is a straightforward messaging application built with Laravel and Pusher. It enables users to exchange messages, reply to specific messages, delete sent messages, track has last seen status, and display read receipts with ticks indicating when messages are read by the recipient...

Animation-2

Requirements

  • PHP v8.3
  • Composer v2.7.4
  • Mysql
  • Pusher
  • React
  • Scout (Mellisearch)

Setup

  1. Run composer install to install the PHP dependencies.
  2. Run npm install to install the Node.js dependencies.
  3. Run php artisan migrate:fresh --seed to migrate the database and seed it with data.
  • Create Account
  • Create App
  • Copy API Keys

Environment Configuration

  1. Copy the .env.example file and rename it to .env.

  2. Populate the following API keys in the .env file:

    • SCOUT_DRIVER=meilisearch

    • BROADCAST_DRIVER=pusher

    • PUSHER_APP_ID

    • PUSHER_APP_KEY

    • PUSHER_APP_SECRET

    • PUSHER_APP_CLUSTER

  3. Additionally, for client-side environment variables, update your .env file as follows:

    VITE_APP_NAME="${APP_NAME}"
    VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
    VITE_PUSHER_HOST="${PUSHER_HOST}"
    VITE_PUSHER_PORT="${PUSHER_PORT}"
    VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
    VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
    

    These variables will be used in your client-side code, so make sure to replace ${...} placeholders with actual values.

NPM packages used

Laravel echo hero icons-react

Done by Osmar Rodrigues - @Reaper1994

About

A straightforward simple messaging application built using Laravel and Pusher

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages