Audience Connect
Audience Connect is a web application that allows presenters to connect with their audiences via live chat and polling.
It was made with ❤ by:
- Albert Fung
- Jason Runzer
- Pat Smuk
- Stuart Calverley
Setup Instructions
- Install:
- Node.js
- PostgreSQL
- Gulp via
npm install gulp -g
(after installing Node.js)
- Inside this project's directory, run
npm install
(npm is included with Node.js). - Create a new database called
audience_connect
in PostgreSQL. - Execute
schema.sql
on the database. - Edit
database_info.json
so that the app has valid credentials for accessing the database. - To run the app:
- In debug mode (live reloading, stack traces), run
gulp
and wait a few seconds forwebpack
to finish. - In production mode (no live reloading, no stack traces), run
gulp webpack
and then either:NODE_ENV=production PORT=80 bin/www
if you use Bash.cmd /C "set NODE_ENV=production && set PORT=80 && node ./bin/www"
if you use Command Prompt.
- In debug mode (live reloading, stack traces), run
- Open the app in your favorite web browser by going to http://127.0.0.1/ (or http://127.0.0.1:3000/ in debug mode).
Notes
- Our API backend is fully unit-tested! Run
npm test
to run the test suite. - After registering a new account you must manually set the
full_name
,student_id
, andavatar
fields in theusers
table and setverified
totrue
before it can be used.- The avatar should be a 50x50 pixel Base64-encoded data URL.
- You can use this online tool to convert an image; make sure to check the "Format as Data URL" box.
- To make an account a "presenter" (full access) set the
presenter
field totrue
in theusers
table.