Firebase function to handle automation of weekly sport predictions

Job ID: 36518214

Budget: £20 – £250 GBP

Project overview:

User data is stored within Cloud Firestore under a collection called 'predictions'. Within here documents created with the users UID as the document ID hold the users weekly predictions in the format of:

weekly_submitted (map)
- 'teamname-teamname' : 'score-score'

The Firebase function needs to run every week and check against a pre-defined Firebase collection containing the results. If the result matches the score correctly then X points are awarded. If the user correctly guessed the winning team X points are awarded. Additional bonus points are given if the user correctly guesses all the fixtures or guesses all the scores correctly.

The users score is then updated to reflect the prediction results. This is contained within the same document as the submitted predictions.
Related categories: Node.js Web Development Google Firebase