GithubHelp home page GithubHelp logo

99x / realtime-toastr Goto Github PK

View Code? Open in Web Editor NEW
2.0 7.0 9.0 86 KB

This will give real time non-blocking notifications from server to client

License: MIT License

JavaScript 99.23% CSS 0.06% HTML 0.71%

realtime-toastr's Introduction

realtime-toastr

license Join the chat at https://gitter.im/realtime-toastr/Lobby npm version Build Status

realtime-toastr is a real time, non blocking, serverside notification service. This enables users to get notifications from the server without having to listen/poll the server, when they are available.

Installation

TODO: Describe the installation process

Usage

TODO: Write usage instructions

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

TODO: Write history

Credits

TODO: Write credits

Licence

realtime-toastr is under MIT licence - https://opensource.org/licenses/mit-license.php

realtime-toastr's People

Contributors

charithsoori avatar divayprakash avatar gitter-badger avatar hashanmwanniarachchi avatar hashanw avatar janitha000 avatar nikhilgupta23 avatar th0j avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

realtime-toastr's Issues

Integrate travis

Travis supports CD capability.

http://docs.travis-ci.com/user/deployment/npm/

Instead of forgetting to publish manually, this should be enabled. Here's our GitFlow workflow:

Development occurs in the develop branch.
New Pull Requests must be to to be merged against this branch. However, Pull Requests will only be reviewed If the pull request can be merged and the tests passes. Also, the milestone must be set to the associated Issue.
After a new release has been planned, all the merged pull requests can be released.
On a new release, Tagging is added, the version is bumped in package.json and the Develop branch will be merged to Master, triggering the npm publish on Travis.

Create an interface to integrate with toastr

How Client use it

rtToaster.subscribe("eventname",callback)

Serverside

var rtToaster = require('rtToaster');
rtToaster.emit('eventname',data);

Architectural consideration

multiple require [require('rtToaster')] shouldn't violate having singleton socket instance concept

Discuss project architecture

  1. Discuss on how we can integrate nodejs and socket.io
  2. Discuss on how to implement server
  3. Discuss on how to identify clients
  4. Discuss on how to handle multiple clients
  5. Discuss on how to handle multiple tabs for same client
  6. Discuss on how we can use namespaces and rooms
  7. Discuss on how we can use toastr
  8. Discuss on how to handle authentication

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.