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.
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: