Skip to content

sebastienblanc/hackergarten-messenger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackengarten Messenger

This is a Simple Notification Application built during the AeroGear's Hackergarten in 4 hours (including the NodeJS backend ) !

Authors

Used technologies

Client Side

Server Side

Installation

Server Side

Set up an UnifiedPush Server instance, more info :

Deploy NodeJS Application :

  • The backend application just consist of the server/index.js , deploy it where you want, for instance OpenShift also comes with a NodeJS Cartdridge (be sure to uncomment the specific settings in the file for OpenShift).

  • Don't forget to point to your UnifiedPush Instance URL and to set the Application ID and the Master Secret

Client side

Clone the repo :

git clone https://github.com/sebastienblanc/hackergarten-messenger

Add platform and plugins :


cd hackergarten-messenger
cordova platform add android
cordova plugin add https://github.com/aerogear/aerogear-pushplugin-cordova.git

Change the settings related to the UnifiedPush Server (https://github.com/sebastienblanc/hackergarten-messenger/blob/master/www/js/services.js):


 var pushConfig = {
      senderID: "senderID",
      pushServerURL: "https://hackergartenups-sblanc.rhcloud.com/",
      variantID: "variantID",
      variantSecret: "variantSecret"
  };

Also be sure to point to your NodeJS backend (https://github.com/sebastienblanc/hackergarten-messenger/blob/master/www/js/services.js).


return $http({
      method: 'POST',
      url: 'http://hackernode-sblanc.rhcloud.com/messages',
      data: {
        message: msg
      }
    });

Deploy the app on the device :

cordova run android

TODOs

  • Add local persistence using AeroGear's DataManager
  • Encrypt the stored messages
  • Create backends using other technologies : JEE7 / Grails / Rails / Vert.x

About

The perfect starting point for an Ionic project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 91.1%
  • CSS 8.9%