Skip to content

pusher/laravel-chat

Repository files navigation

About The Project

This is the final codebase for our Pusher tutorial.

About us

Pusher does Websocket infrastructure so you don't need to. Check us out.

Getting Started

If you don't want to follow the tutorial, and just want to get a local copy up and running, follow these steps.

Prerequisites

You will need PHP, Composer and Node.js. For MacOS I recommend installing them with Homebrew. For Windows see instructions for PHP, Composer and Node.

Installation

  1. Get your free Pusher API Keys at https://pusher.com
  2. Clone this repo
  3. Install Composer packages
    composer install
  4. Install NPM packages
    npm install
  5. Create a sqlite database file in the database folder
    touch db.sqlite
  6. Enter your API keys in .env
     PUSHER_APP_ID=
     PUSHER_APP_KEY=
     PUSHER_APP_SECRET=
     PUSHER_APP_CLUSTER=
    
  7. Enter the path to your database file
    DB_DATABASE=<Full path to the sqlite file>
    
  8. Initilise the database
    php artisan migrate
  9. Compile the webpages and run it
    npm run dev
    php artisan serve

Usage

Go to http://127.0.0.1:8000/, register a couple of users and start chatting!

Contact

Credits

Owned by Pusher.

License

PusherSwift is released under the MIT license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published