Medic Bulk Utils is a set of command line tools and documentation to help manage large amounts of Medic Mobile data.
The following command line tools are installed with this package:
- medic-stats
- medic-import
- medic-format-csv
- medic-csv-to-json
- medic-update-embedded
- medic-extend-properties
- medic-export-mysql-query
A new project typically begins with a spreadsheet of raw data that you want to update or add (import). This might be an export from a database or maintained some other way.
Create a directory for your project:
mkdir medic-projects-493
Create your package.json:
{
"name": "medic-projects-493",
"dependencies": {
"medic-bulk-utils": "latest"
}
}
Install the dependencies:
npm install
This repo is bundled with a set of project templates for common tasks. This is
a good starting point for your projects. You can just copy and modify these
files in your working directory to get started. Each project template also
includes a Makefile so after installing you can execute make
to run the
example.
Example:
cp -i node_modules/medic-bulk-utils/project-templates/import-users/* .
make
Then read the instructions:
cat Readme