Skip to content

Skydipper/graph-client

Repository files navigation

Graph client Microservice

This repository is the node skeleton microservice to create node microservice for WRI API

  1. Getting Started

Getting Started

OS X

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.

Configuration

It is necessary to define these environment variables:

  • CT_URL => Control Tower URL
  • NODE_ENV => Environment (prod, staging, dev)

Database constraints

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


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •