An open-source web tool for converting formatted fertility data of common fertility tracking apps to the drip.app format.
- Premom
- Read Your Body
- Ovagraph
This project is a simple static web tool built with npm, vite, and AlpineJS.
First install dependencies with:
npm install
Then run:
npm run dev
To run tests:
npm run test
To build run:
npm run build
There are lots of fertility apps out there and unfortunately I can't do them all. If you don't see one you use or want supported feel free to contribute.
- Fork the project and clone to your local machine to make changes
- Create a new branch with the name of your change (e.g. some_app_mapper_support)
- Make changes
- Create a pull request
- Create a file under the
mappers
directory named after the app you're adding support for - Add your app name to the
APP_NAME
constant inindex.js
- If an export resource exists to your app, add it to the
HELP_LINK_MAP
inindex.js
. Otherwise, omit it. - Add a switch case for the new
APP_NAME
you've created undermapToDripFormat
function inindex.js
and have it return the value of your mapper - Add the
APP_NAME
value as an<option>
under the<select>
element inindex.html
- Add tests under the
tests
directory - Add any generic functionality/variables to the utils/constants files.
I added some comments around the code under "DEV_NOTE". Do a search in whatever IDE you use to check those out.
I also added a template file under template.js
that you can use if you prefer.
Mapping from one data format to another can be a tedious task and isn't very intuitive to manually verify. Be sure to create tests around your mappings that cover any edge cases or data that requires processing. You also must verify that it can be imported successfully into the drip. app.