Git Product home page Git Product logo

flash-comments's Introduction

flash-comments

Flash Comments - Realtime Live Commenting using Pusher & Websockets

View tutorial

Prerequisite Softwares

  • NodeJS
  • NPM
  • Yarn (Optional)

Running the Project

In order to run the app on your machines, please follow the below given steps:

  1. Clone the Repo using the URL - https://github.com/mappmechanic/flash-comments
 git clone https://github.com/mappmechanic/flash-comments.git
  1. Run either of the following commands to install dependencies
 npm install

OR

 yarn
  1. Signup at https://pusher.com/signup.

  2. Create a new app to obtain the API Key, secret & appId. Also, I have chosen the cluster 'ap2 (Mumbai, India), but you will be required to choose a cluster specific to your app users.

Replace the respective key, secret & appId for pusher initialisation in server.js file with your values:

    var pusher = new Pusher({
    appId: '<your-app-id>',
    key: '<your-api-key>',
    secret: '<your-app-secret>',
    cluster: 'ap2',
    encrypted: true
    });
  1. Finally you will have to also replace your app-key in app.js file too:
 ...
 pusher = new Pusher('<your-api-key>', {
    cluster: 'ap2',
    encrypted: true
 }),
 ...
  1. Now we are ready to run our app using the following node commands
node server
  1. We will be able to access the app at http://localhost:9000

For Any clarifications or questions Tweet to me at https://twitter.com/mappmechanic

flash-comments's People

Contributors

mappmechanic avatar

Watchers

James Cloos avatar  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.