Simple real-time voting web application with take an avantage of Firebase Authentication and Firebase Firestore
- Node LTS
-
Create a firebase project that you wish to deploy into.
-
Create some initalize data in Firestore with following data
Document Path | Value |
---|---|
/system/admins/uids |
[] |
/system/votes/open |
false |
-
Copy Firebase SDK configuration into
.env
file and evnironment variables of your production Node (Example can be found at.env.example
) -
Deploy by using
firebase-tools
firebase deploy
-
After deployment go to
/admin
URL and authenticate once -
When unauthorized screen appear, go to Firebasse Console and copy your User UID located at Develop / Authentication tab
-
Add User UID into Firestore
/system/admins/uids
array and make sure there's no empty value in array (just in case)
We welcome all contributions by sending PR to this repository.
If you need help with anything, here're following methods:
If you have something you want to discuss in detail, or have hit an issue which you believe others will also have in deployment or development of the system, opening an issue is the best way to get help. It creates a permanent resource for others wishing to contribute to conversation.
If you like my project, please supporting me by buying some coffee