Giter Site home page Giter Site logo

lar-socket's Introduction

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.

lar-socket's People

Watchers

Shaheer Khan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.