Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
/ rayriffy-vote Public archive

Simple real-time voting web application with take an avantage of Firebase Authentication and Firebase Firestore

License

Notifications You must be signed in to change notification settings

rayriffy/rayriffy-vote

Repository files navigation

Riffy Vote

Simple real-time voting web application with take an avantage of Firebase Authentication and Firebase Firestore

Requirements

  • Node LTS

Installation & Set-up

  1. Create a firebase project that you wish to deploy into.

  2. Create some initalize data in Firestore with following data

Document Path Value
/system/admins/uids []
/system/votes/open false
  1. Copy Firebase SDK configuration into .env file and evnironment variables of your production Node (Example can be found at .env.example)

  2. Deploy by using firebase-tools

firebase deploy
  1. After deployment go to /admin URL and authenticate once

  2. When unauthorized screen appear, go to Firebasse Console and copy your User UID located at Develop / Authentication tab

  3. Add User UID into Firestore /system/admins/uids array and make sure there's no empty value in array (just in case)

Contributing

We welcome all contributions by sending PR to this repository.

Need Help ?

If you need help with anything, here're following methods:

Create an Issue

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.

Donations

If you like my project, please supporting me by buying some coffee

About

Simple real-time voting web application with take an avantage of Firebase Authentication and Firebase Firestore

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published