Skip to content

xclemence/dependencies-graph-graphql

Repository files navigation

Dependencies Graph GraphQL

License: MIT Build Quality Gate Status

Dependencies Graph GraphQL provides GraphQL entry point retrieve assemblies and these dependencies. behind service, a Neo4j database ensures graph storage.

Features

  • Get assemblies information
  • Get software information

How to use

Build sources

  • yarn dev for development. Navigate to http://localhost:4001/graphql. The app will automatically reload if you change any of the source files.
  • ng build to build the project.

This project is configured to work with the Remote Development plugin.

With your server still running, visit http://localhost:4001 in your browser to open GraphQL Playground (provide by Apollo Server)

Docker image

A Docker image with this software is available from the packages page.

This image is base on Linux.

You can configure container by setting environment variables.

Environment variable Comment sample value
NEO4J_HOST Noe4j database uri bolt://localhost
GRAPH_SECURITY_ENABLED Enable jwt validation bolt://localhost
GRAPH_TOKEN_ROLES_PATH Roles path inside jwt resource_access.graph-graphql.roles
GRAPH_TOKEN_AUTHORITY Authority for token validation http://localhost:9080/auth/realms/dependencies
DEBUG Activate @neo4j/graphql traces @neo4j/graphql:*

Port exposed by Container:

Name Description
4001 HTTP port for GraphQL services

You can start a Dependencies Graph Viewer container like this:

docker run \
    --publish=4001:4001 \
    dependencies-graph-graphql:tag