This is a toy app that I made in order to lift the spirts of my team during the COVID-19 pandemic. There were initially 35 questions that we asked each other each working day as a small group (kind of like Show and Tell). The questions are stored in a Google Firebase database.
- Create a Google Firebase database and place the JSON service account
file
in
./secrets/firebase-config.json
- You can convert the JSON file to base64 like this:
openssl base64 -in ./secrets/firebase-config.json -out ./secrets/firebase-config.json.base64
You can then add that as a secret to your deployment/hosting provider (as an environment variable)
- You can convert the JSON file to base64 like this:
composer install
open http://127.0.0.1:8080 && php -S 127.0.0.1:8080
(serve the app)
- Add the new questions (line by line) to:
data/questions.txt
- Open
http://<app domain>:<app port>/importnewquestions.php?day=<Today's day of the week in English>