This project allows you to host a name voting page which updates the results in real time.
- nodejs, I suggest using nvm
- Bower
- Firebase tools
npm install -g bower
npm install -g firebase-tools
git checkout https://github.com/dvdcastro/name_voting.git
cd name_voting
bower install
1. Create a firebase account and a project.
2. Enable anonymous auth: In the Firebase console, open the Auth section. On the Sign-in Methods page, enable the Anonymous sign-in method.
3. Create a .firebaserc
file. You can copy the base file.
cp .firebaserc.base .firebaserc
Edit this file by adding your firebase project identifier.
4. Create a js/conf.js
file. You can copy the base file.
cp js/conf.js.base js/conf.js
Edit this file by adding your firebase project data, you can get this from the firebase console.
Once everything is configured, make sure to install firebase cli in your system.
Then, just deploy the app.
firebase deploy
The script should tell you where to go in your browser.
There are 2 ways of accessing this site
- As an admin
- As a voter
To access as an admin:
<your firebase url>/!#/admin
As an admin, you can create voting rooms and check out the results in other rooms.
To access as a voter:
<your firebase url>/
As a voter you can register, login, vote and look at the results that others have sent.