POC to demonstrate how PubNub can enable a live shopping experience.
A hosted version of this demo can be found at https://pn-demo-complex-shop.netlify.app/
This demo is primarily designed to be delivered as a guided demo by PubNub's sales team. Please contact your Account Manager Ivan Harding or your Solution Architect Craig Conover
- React to the live stream by pressing the emoji below the video (if you press the buttons enough times, you will trigger that emoji to be upgraded)
- Send messages in the chat window (log in under a separate window to receive the message)
- Participate in the trivia
- Explore the left-hand menu, this shows the portal data that powers the demo:
- Users and Channels
- Message moderation
- Illuminate (to trigger events if you tap the reaction emoji enough times)
- PubNub Functions
- Mobile or Tablet view
- Number of people watching the live event (PubNub Presence)
- Reactions to the live event, e.g. cheering, anger, celebration (PubNub Messaging)
- Polls - Starting a poll as well as real-time voting and results (PubNub Messaging, and appropriate Channel architecture)
- Chat - Send and receive messages (PubNub Chat SDK)
- Chat - React to messages (PubNub Chat SDK)
- Chat - Number of people participating (PubNub Presence)
- How PubNub Functions can help extend the capabilities of the live event app
- Live Commentary (PubNub Messaging)
- Gamification: user can earn points as they click ads, or participate in trivia.
- Gamification: Emoji can be upgraded if they are tapped enough (PubNub Illuminate)
- User and Channel Management (BizOps Workspace)
- Moderation (PubNub Channel Monitor)
- On-screen guides to show how each feature was implemented
To run this project yourself you will need a PubNub account
-
You’ll first need to sign up for a PubNub account. Once you sign up, you can get your unique PubNub keys from the PubNub Developer Portal.
-
Sign in to your PubNub Dashboard.
-
Click Apps, then Create New App.
-
Give your app a name, and click Create.
-
Click your new app to open its settings, then click its keyset.
-
Make sure your keyset has the following features enabled: Stream Controller, Presence, Persistence, App Context
-
Leave Access Manager disabled for now (this is not needed for testing)
-
Copy the Publish and Subscribe keys and paste them into your app as specified in the next step.
-
Clone the repository
-
You will need to install both the front-end and back-end application to get started
Rename the .env.example file found under the web directory to .env and populate it with your PubNub keys
cd pn-solution-live-events
cd web
yarn install
yarn dev
Navigate to localhost:3000 in your browser
Rename the .env.example file found under the backend directory to .env and populate it with your PubNub keys. Providing the secret key is only required if you enable Access Manager on your keyset.
cd pn-solution-live-events
cd backend
npm install
npm run generator
Please contact your Account Manager Ivan Harding or your Solution Architect Craig Conover or raise an issue in this repository.
