Coder Social home page Coder Social logo

koketsomawasha / poster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shalvah/poster

0.0 0.0 0.0 12 KB

[Demo] Node app implementing Twitter's real-time likes count feature with Pusher

Home Page: https://blog.pusher.com/build-twitters-realtime-likes-feature-node-js-pusher/

JavaScript 64.61% CSS 1.45% HTML 33.94%

poster's Introduction

poster

This project demonstrates how to add Twitter's realtime likes functionality to your Node app with Pusher. Here's a walkthrough.

Description

The app's homepage displays a list of posts. Open the app in several different browser windows or tabs simultaneously. You'll see that liking a post in one window reflects across all windows wthout needing a page refresh.

Prerequisites

Getting started

Clone the project:

git clone https://github.com/shalvah/poster

Put your Pusher app credentials in a .env file in the project root:

PUSHER_APP_ID=your-app-id
PUSHER_APP_KEY=your-app-key
PUSHER_APP_SECRET=your-app-secret
PUSHER_APP_CLUSTER=your-app-cluster

Look for these lines of JavaScript in views/index.hbs:

var pusher = new Pusher('your-app-id', {
    cluster: 'your-app-cluster'
});

Insert your Pusher app ID and cluster in the appropriate places.

Start your MongoDB server by running mongod.

Then:

node bin/seed.js
npm start

Built With

  • Pusher - APIs for building realtime features

Acknowledgements

  • Twitter!

poster's People

Contributors

shalvah 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.