StanfordBDHG / ENGAGE-HF-Firebase

Firebase cloud hosting infrastructure for the ENGAGE-HF project.
MIT License
0 stars 1 forks source link

Example & Initial Data #9

Closed pauljohanneskraft closed 3 weeks ago

pauljohanneskraft commented 3 weeks ago

Example & Initial Data

:recycle: Current situation & Problem

There is currently no (or very little) data in Firestore, so we should populate it, especially with the rather static parts of ENGAGE-HF, e.g. videoSections, videos, medicationClasses and medications. This PR now adds an upload script to initially populate the database with entries provided in a JSON file. It automatically creates subcollections for every array that is part of the JSON file.

:gear: Release Notes

Add upload.js and example data JSON files for videoSections, medications and medicationClasses.

:books: Documentation

-

:white_check_mark: Testing

-

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: