This repository is the node skeleton microservice to create node microservice for WRI API
First, make sure that you have the API gateway running locally.
We're using Docker which, luckily for you, means that getting the application running locally should be fairly painless. First, make sure that you have Docker Compose installed on your machine.
git clone https://github.com/Vizzuality/graph-client
cd graph-client
./service.sh develop
./service.sh test
```text
You can now access the microservice through the CT gateway.
It is necessary to define these environment variables:
- CT_URL => Control Tower URL
- NODE_ENV => Environment (prod, staging, dev)
Add the next constraints in Neo4j:
// only one dataset node with the same id
CREATE CONSTRAINT ON (dataset:DATASET) ASSERT dataset.id IS UNIQUE
// only one widget node with the same id
CREATE CONSTRAINT ON (widget:WIDGET) ASSERT widget.id IS UNIQUE
// only one layer node with the same id
CREATE CONSTRAINT ON (layer:LAYER) ASSERT layer.id IS UNIQUE
// only one metadata node with the same id
CREATE CONSTRAINT ON (metadata:METADATA) ASSERT metadata.id IS UNIQUE