- Reads the zip package path from ZIP_Q
- Extracts the zip folder
- Saves attachments associated with the iri on the filesystem
- Syncs document with Portal DB (gawati-data)
- Writes updated status on STATUS_Q
- Reads the iri from IRI_Q
- Deletes attachments associated with the iri from the filesystem
- Purges document from Portal DB (gawati-data)
- Writes updated status on STATUS_Q
- Clone the repo
git clone https://github.com/gawati/gawati-portal-publisher.git
- Install packages
npm install
- Run
node index.js
- This component needs to on the same system as gawati-portal-qprocessor.
- It depends on several other components which are a part of the Publishing Workflow. The following components need to be started, in the given order, prior to gawati-editor-qprocessor:
- gawati-data
- Package path: This is set in
constants.js
and refers to the filesystem path where extracted zip packages are stored. - Service end points: Endpoints for talking to gawati-data. Set in
configs/dataServer.json