Skip to content

This is a sample push notification developed to perform live update functionality.

Notifications You must be signed in to change notification settings

aman199002/Push-Notification-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push Notification Sample App using Private Pub

This application provides the user to register and sign in using authlogic. After login user can create a post and it will be visible on home page.

The home page will show the list of posts.

When some other user creates a post then the home page will be updated without refresh and new posts will be shown on home page via push notification using Private Pub gem.

You must start Faye to publish posts to the specific channel.

Steps to run the application after download.

$bundle install   # To install gems
$rails server     # To start Rails Server
$bundle exec rackup private_pub.ru -s thin -E production    #To start Faye for subscribing and publishing to channels.

To use Private Pub in production server, please make folwwoing changes In private_pub.yml file inside config folder, please specify url of the application like server: "http://example.com/faye"

and start Faye in production mode with this command

$RAILS_ENV=production bundle exec rackup private_pub.ru -s thin -E production    

Note: You must start the thin server in production mode even if you are running application in development mode.

About

This is a sample push notification developed to perform live update functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published