Source for a web application utilizing ✨ PubNub's API ✨with scoring feature. (No Server Code)
A simple Question and Answer WebApp I put together for my website(dailycode.org). Live Q&A sessions can be held with scoring feature. It is a demo application created using PubNub's JavaScript SDK and Pub/Sub API. There are no dependencies except a KEYS for API. Used HTML5, CSS,jQuery,Tachyons and JavaScript.
- Navigate to app directory.
- Replace the KEYS in QandA_receiver.js and QandA.js with your own key.
- Open QandA.html(Publisher), QandA_receiver.html(Receiver) and index.html(Optional) in a browser of your choice.
- Type and send a question from Publisher and check Receiver.
- Type and Send the answer to the question from Receiver to Publisher.
- The Publisher can either comment on the answer or give the correct answer.
- Score the answer on the scale of 0-5.
- Make sure Receiver gets the score.
- Keep on going!! Check out the demo video in the links below.
- App dir has all the source code or check out links below for GitHub.
- I used scss initially and then generated css using jekyll, to remove dependency.
- index.html file is not relevant to PubNub API.
- QandA.html has the publisher's end and QandQ_receiver.html has the receiver's end code.
- Receiver can also publish answer to the Publisher.
- Score is calculated and displayed to Receiver only.
- Multiple clients work but not this simple app is for single client-server.
- GitHub: https://github.com/dineyw23/QandA_WebApp
- YouTube: https://youtu.be/9d6sGmoGyhE
- Coming soon: http://www.daiycode.org
