Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.
/ tattletale Public archive

[Tutorial] Realtime push notifications for your web app, powered by Pusher

Notifications You must be signed in to change notification settings

shalvah/tattletale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tattletale

Realtime push notifications for your web app, powered by Pusher

View tutorial

Description

The app's home page shows a list of articles. Each article can be edited by anyone. Whenever an article is edited, a push notification is sent to every other user on the site, and an "Updated" badge displays next to the article name in the article list.

Prerequisites

Getting started

Clone the project:

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

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/layout.hbs:

var pusher = new Pusher('YOUR_APP_KEY', {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

About

[Tutorial] Realtime push notifications for your web app, powered by Pusher

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published