Angular JS HubBub chat application
This is a full AngularJS chat app built with PubNub
Learn how to build this chat app by following these easy-to-follow tutorials:
Client ID
and Client Secret
Publish Key
, Subscribe Key
and Secret Key
client/config.json
file. client/sample.config.json
or below is how this file looks like:{
"PUBNUB_SUBSCRIBE_KEY": "sub-c-61b076f2-fed0-...............",
"PUBNUB_PUBLISH_KEY": "pub-c-d22410bf-edc6-44fb-............",
"GITHUB_CLIENT_ID": "1e439e............",
"GITHUB_REDIRECT_URI": "http://localhost:9000/",
"GITHUB_ACCESS_TOKEN_REQUEST_URL": "http://localhost:3000/auth/github",
"SERVER_URL": "http://localhost:3000/"
}
cd client
bower install
npm install
grunt serve
Run grunt build
for building the production app
server/.env
file. server/.sample.env
or below is how this file looks like:PUBNUB_SUBSCRIBE_KEY=sub-c-61b076f2-fed0-...............
PUBNUB_PUBLISH_KEY=pub-c-d22410bf-edc6-44fb-............
PUBNUB_SECRET_KEY=sec-c-MGM4ZjJkNTYtNzQ1Zi0................
SERVER_PUBNUB_AUTH_KEY=....ANY-RANDOM-STRING.....
GITHUB_CLIENT_ID=1e439e............
GITHUB_CLIENT_SECRET=3c69fde2d90e3............
GITHUB_REDIRECT_URI=http://localhost:9000/
GITHUB_ACCESS_TOKEN_REQUEST_URL=http://localhost:3000/auth/github
cd server
npm install
npm start