Skip to content

Instantly share code, notes, and snippets.

@srivastavarobin
Last active August 29, 2015 13:56
Show Gist options
  • Save srivastavarobin/8982444 to your computer and use it in GitHub Desktop.
Save srivastavarobin/8982444 to your computer and use it in GitHub Desktop.
Doodly Doo notification server readme

#Doodly Doo Notification Server ##What does this server do?

  1. Takes the kind of notification to send
    1. Doodle World
    2. Greetings
    3. Emojis
    4. Rage Face
  2. Takes the message to send (Note: Message should not contain hyphens (-))
  3. Connect to the MySQL server
  4. Get the first 1000 records
  5. Send the notification
  6. Get the second batch and send the notification
  7. Repeat 6 till the list is exhausted
  8. Following would be achieved
    1. Send push notifications
    2. Get the list of canonical IDs
      • Phone number
      • User ID
      • Old Push ID
      • New Push ID
      • Available as JSON with the date and time of its creation
    3. Get the list of IDs for which the push could not be send along with the reason
      • Phone number
      • User ID
      • Push ID
      • Reason
    4. Summary of the operation
      • Number of notifications to be sent
      • To how many people was the notification sent successfully
      • For how many people it failed
      • Total number of canonical IDs generated

##Node Modules being used

Functionality Module
Express express Guide available here
Android Push Notification node-gcm
MySQL Connect mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment