This project provides an API for building CoMapeo configuration settings using the mapeo-settings-builder
tool. It accepts a ZIP file containing CoMapeo configuration files, processes it, and outputs a .comapeocat
file. The API streamlines the process of converting raw configuration data into a format that can be directly used by CoMapeo applications.
Key features:
- Accepts a ZIP file upload containing CoMapeo configuration settings
- Utilizes the
mapeo-settings-builder
tool to process the configuration - Outputs a built
.comapeocat
file ready for use in CoMapeo
-
Run the Docker container:
docker run -p 3000:3000 communityfirst/comapeo-config-builder-api
-
Install dependencies:
bun install
-
Install
mapeo-settings-builder
globally:bun install -g mapeo-settings-builder
-
Run the application:
bun run index.ts
Use the following curl
command to POST a ZIP file to the API:
curl -X POST -H "Content-Type: multipart/form-data" -F "[email protected]" --output config-cultural-monitoring.comapeocat http://localhost:3000/```