akserg / ionic2-pubnub-chat

Chat implementation on Ionic 2 based on PubNub solution
MIT License
10 stars 5 forks source link

Mobile WebRTC Chat based on PubNub and Angular 2

There is a simple mobile chat based on PubNub Data Stream Network and Angular 2 for demonstrate how combine them together inside Ionic 2 project.

Prerequisite

  1. Check the 'Get Started' link on PubNub to register free account
  2. Install latest Ionic 2 CLI

Testing Locally

You need an HTTPS (TLS) File Server. To start a local secure file server:

python <(curl -L https://goo.gl/Rrko89)

This is a Simple Python HTTPS Secure Server https://gist.github.com/stephenlb/2e19d98039469b9d0134

Start

Run following shell script to install NPM modules

npm i

Add Android or IOS platform to your project

ionic platform add ios android

Build project for specified platforms

ionic build

Explore project in your local web browser

ionic serve

Credits