Skip to content

Latest commit

 

History

History
77 lines (44 loc) · 2.45 KB

README.md

File metadata and controls

77 lines (44 loc) · 2.45 KB

OpenMapKit Server

OpenMapKit Server is the lightweight NodeJS server component of OpenMapKit that handles the collection and aggregation of OpenStreetMap and OpenDataKit data.

This software is intended to run both on low-power embedded Linux systems, as well as on higher powered, cloud-based servers.

OpenMapKit Server is 100% database free! All data is persisted on the file system.

These instructions are for setting up and running OpenMapKit Server in your development environment.

If you want to run OpenMapKit Server for your field mapping survey, use the POSM Build Installation instructions and POSM documentation.

Project Structure

deployments is the OpenMapKit deployment API. This services deployment data in the deployments data directory. Manifest files in this directory are read by OpenMapKit Android as metadata regarding the deployment data provided. Deployments are created by posm-admin. to provision deployment data that is fetched by OpenMapKit Android.

odk is the OpenMapKit ODK API. This is a REST API that handles all of the ODK business logic, including communicating with ODK Collect, as well as serving and ingesting ODK XForm data.

frontend is where the front end code lives.

data is where all of the data is stored on the server's file system.

util has utility functions useful to OpenMapKit Server as a whole.

The Basics

After your installation is done, you can see if the server is alive at:

http://{{your_host_url}}/info

To get forms and send submissions in ODK Collect set:

ODK Collect > General Settings > Configure platform settings > URL

http://{{your_host_url}}

See all of the pages on your server:

http://{{your_host_url}}/pages/

Upload an XLS Form:

http://{{your_host_url}}/pages/upload-form/

API

Check out the API Documentation for details about the REST API.

ZenHub

Miscellany

Testing XML Submissions

curl -F [email protected] http://localhost:3210/submission