/question-of-the-day

A toy app to help my team make it through these Covid-ridden times

Primary LanguageJavaScript

Question of the day

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.

Installation (for local development)

  1. 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)
  2. composer install
  3. open http://127.0.0.1:8080 && php -S 127.0.0.1:8080 (serve the app)

Add new questions to the database

  1. Add the new questions (line by line) to: data/questions.txt
  2. Open http://<app domain>:<app port>/importnewquestions.php?day=<Today's day of the week in English>