Deadline is a to-do list webapp in a group setting to boost productivity!
We recommend doing server development in a Python3.7 environment. Run the following commands in the Deadline root directory.
python3 -m venv venv/deadline
Activate your Deadline virtual environment:
source venv/deadline/bin/activate
Install requirements
pip install -r requirements.txt
- Go to Firebase console for the project
- Go to
Settings -> General
- Scroll down to
Firebase SDK snippet
- Select
Config
and save the scripts asfirebaseConfig.json
in project root following the format offirebaseConfig_sample.json
- Go to
Settings -> Service accounts
- Go to
Firebase Admin SDK
tab - Scroll down and select
Generate new private key
- Save the file in project root folder as
firebaseAdminConfig.json
following the format offirebaseAdminConfig_sample.json
- Make sure it is executable
chmod +x run_local.sh
- Run locally
./run_local.sh
- Make sure it is executable
chmod +x run_tests.sh
- Run tests, supply with -v to check which functions are tested in each file
./run_tests.sh
Go to ./htmlconv/index.html
for an interactive coverage report.
- Since deployment, one cronjob checks for overdue tasks every hour and penalises the group (-5 units of random resources) the user with the overdue task belongs to.
- Since deployment, one cronjob removes all completed and non-completed tasks (hard reset) every Monday at 00:00, timezone set to system timezone at deployment.