An anonymous question bank platform
| Homepage | Publik | Pertanyaan |
|---|---|---|
| Daftar Pertanyaan | Setelan Akun |
|---|---|
node, minimum version18.16.0pnpm, see installation instruction
Tip
If you need step-by-step guidance for setup Firebase, go to docs directory.
- Create Firebase project, go to console.firebase.google.com
- Activate the authentication for the web
- [Firebase Admin #1] Go to Project settings -> Service accounts -> Generate new private key
- Copy the downloaded Private key to the Project root directory, rename to
TanyaAja-firebase-adminsdk.json - [Firebase Admin #2] Create Realtime Database
- Copy the Database url, e.g.
https://tanyaaja-rtdb.asia-southeast1.firebasedatabase.app - Still on Realtime Database, go to Rules -> create Rule.
- Copy the Rule from here then Publish the Rule
Important
In some conditions, you need to add role "Service Usage Consumer" manually to your Service Account created via Firebase.
- Create a notion integration
- Duplicate the template from: TanyaAja DB Template
- Add the integration to the page
- Install all dependencies, by running
pnpm install - Create new
.env.localfile, copy from the.env.exampleand fill it with your value from Firebase and Notion
- Copy value from
TanyaAja-firebase-adminsdk.jsonto https://www.textfixer.com/tools/remove-line-breaks.php and click button "Remove Line Breaks" - Fill the
FIREBASE_SERVICE_ACCOUNT_KEYin the.env.localwith the value from the website previously.
# Make sure to add single quote here
FIREBASE_SERVICE_ACCOUNT_KEY='Your JSON value'Read more in: https://dev.to/vvo/how-to-add-firebase-service-account-json-files-to-vercel-ph5
- Fill the
REALTIME_DATABASE_URLin the.env.localwith the Realtime Database URL, e.g.
REALTIME_DATABASE_URL=https://tanyaaja-rtdb.asia-southeast1.firebasedatabase.app- Run in local, using command
pnpm run dev
We welcome contributions from the community as they help make our project better. Before you get started, please take a moment to read our contribution guidelines to ensure a smooth and collaborative experience.
See our contribution guidelines in these languages:
Thanks goes to these wonderful people!
- 👉 🇮🇩 Trakteer
- 👉 🌍 BuyMeACoffe
- 👉 🌍 Paypal
- 👉 🌍 Ko-Fi
Copyright © 2023 by Irfan Maulana