Skip to content

Commit 13618d9

Browse files
committed
updated demo chat app.
1 parent 3939d99 commit 13618d9

4 files changed

Lines changed: 27 additions & 6 deletions

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ npm install angular-chat
1919
bower install angular-chat
2020
```
2121

22+
## PubNub API Keys
23+
24+
> [Get PubNub API Keys](https://www.pubnub.com/get-started/?medium=sbng2016&source=sbng2016&campaign=sbng2016&keyword=sbangularjs&content=sbng2016)
25+
You need **PubNub API Keys**.
26+
This allows the chat communication on a data stream network.
27+
You can fill in the `YOUR-PUBLISH-KEY`
28+
and `YOUR-SUBSCRIBE-KEY` placeholder strings with your
29+
API keys that you get on the PubNub website.
30+
2231
## Basic Chat Demo
2332

2433
```html
@@ -27,7 +36,19 @@ bower install angular-chat
2736
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
2837
<script src="bower_components/angular/angular.js"></script>
2938
<script src="bower_components/angular-chat/angular-chat.js"></script>
30-
<script src="bower_components/angular-chat/angular-chat-config.js"></script>
39+
40+
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
41+
<!-- configuration -->
42+
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
43+
angular.module('chat').constant( 'config', {
44+
//
45+
// Get your PubNub API Keys in the link above.
46+
//
47+
"pubnub": {
48+
"publish-key" : "YOUR-PUBLISH-KEY",
49+
"subscribe-key" : "YOUR-SUBSCRIBE-KEY"
50+
}
51+
} );
3152

3253
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
3354
<!-- controller -->

angular-chat-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
66
angular.module('chat').constant( 'config', {
77
//
8-
// Get your API Keys -> https://admin.pubnub.com/#/register
8+
// Get your API Keys -> https://www.pubnub.com/get-started/?medium=sbng2016&source=sbng2016&campaign=sbng2016&keyword=sbangularjs&content=sbng2016
99
//
1010
"pubnub": {
11-
"publish-key" : "demo",
12-
"subscribe-key" : "demo"
11+
"publish-key" : "__YOUR_PUBLISH_KEY__",
12+
"subscribe-key" : "__YOUR_SUBSCRIBE_KEY__"
1313
}
1414
} );

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-chat",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "AngularJS Chat - Enable chat messaging experiences in your iOS, Android and Web apps.",
55
"main": "angular-chat.js",
66
"authors": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-chat",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "AngularJS Chat - Enable chat messaging experiences in your iOS, Android and Web apps.",
55
"main": "angular-chat.js",
66
"scripts": {

0 commit comments

Comments
 (0)