Data Handler
Last updated
Last updated
Data Handler is an open-sourced and extensible NodeJS server application that facilitates ETL processes for the data needs of SpatialWork. The source code for a template Data Handler is provided to all users to allow customization for any data requirements. You can find the . It allow you to fetch and save data to a MongoDB database and serve it via API.
Node.js
MongoDB Database
Fork this repository to your own GitHub account.
Clone the forked repository to your local machine.
Install the required nodejs dependencies.
Define your job name, e.g. my_new_job
Create a folder in jobs/
and create a new my_new_job.js
file inside.
Define your job logic. See any of the job samples for reference.
Add a new job definition in jobs/jobs.js
, in the jobs
array:
Create the same folder in model/
and create a new model-my_new_job.js
file inside.
Define your MongoDB collection schema. See any of the model samples for reference.
Add a new model definition in models/models.js
. If your collection stores data in rows, add it to rowDataModels
. If your collection stores data in snapshots, add it to snapshotDataModels
.
For any issues or support requests, please create an issue on the repository.