{"id":13554157,"url":"https://github.com/osmlab/field-data-coordinator","last_synced_at":"2025-04-03T06:31:13.765Z","repository":{"id":83608296,"uuid":"93188183","full_name":"osmlab/field-data-coordinator","owner":"osmlab","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-03T19:15:42.000Z","size":2790,"stargazers_count":7,"open_issues_count":17,"forks_count":2,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-11-04T02:32:47.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osmlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-06-02T17:18:38.000Z","updated_at":"2022-10-14T19:19:21.000Z","dependencies_parsed_at":"2023-07-21T08:17:23.124Z","dependency_job_id":null,"html_url":"https://github.com/osmlab/field-data-coordinator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmlab%2Ffield-data-coordinator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmlab%2Ffield-data-coordinator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmlab%2Ffield-data-coordinator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmlab%2Ffield-data-coordinator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osmlab","download_url":"https://codeload.github.com/osmlab/field-data-coordinator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246947947,"owners_count":20859346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:02:40.827Z","updated_at":"2025-04-03T06:31:12.473Z","avatar_url":"https://github.com/osmlab.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# Field Data Coordinator App\n\nOn start, this project loads an [OSM p2p instance](https://github.com/digidem/osm-p2p-db) and runs an API at `localhost:3210/observations`. Currently, the API supports `/list` and `/create` endpoints. The `/create` endpoint expects a geojson `Feature` object in the payload body.\n\nThis project displays observation data in tabular and map data using Mapbox GL.\n\nInternally, data is stored in a Redux store using [Immutable.js](https://facebook.github.io/immutable-js/docs/#/) data structures. On a `SYNC_SUCCESS` action, the Redux store replaces the internally held store with data from OSM p2p. While the store uses a vanilla JS object to hold the raw observation data, this structure should not be used externally; use derivatives objects and `connect` instead.\n\nTo interface with the OSM p2p db, the electron app includes a local driver at `src/drivers/`. This driver exposes OSM p2p functionality as promises. This structure will allow us to host a future version by creating a remote driver.\n\n## Development\n\n### Prerequisites\n\n- Node v7.6\n\n### Installation\n\n```\nyarn\nyarn appdeps\nyarn start\n```\n\n`.jsx` and `.css` files are hot-swapped.\n\n### Generating mock observations\n\n(The electron app should be running while you do this)\n\n```\ncd bin\nyarn install\n./parse-mock-observations.js\n./upload-mock-observations.sh\n```\n\n### Testing\n\n```\nyarn lint\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmlab%2Ffield-data-coordinator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosmlab%2Ffield-data-coordinator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmlab%2Ffield-data-coordinator/lists"}