Skip to content

hugr-lab/examples

Repository files navigation

The hugr examples

This repository contains examples of how to use the hugr platform for various use-cases, including setting up data sources, creating GraphQL schemas, and integrating with different services like PostgreSQL, Redis, and MinIO.

For more information about the hugr platform, please visit the Web site.

This repo contains examples of hugr use-cases.

Set up the environment

To run the examples, you need to set up the environment. The examples are based on Docker and Docker Compose. To set up the environment, run the following command:

git clone git://git@github.com:hugr-lab/examples.git
cd examples
sh scripts/start.sh

To down the environment, run:

sh scripts/stop.sh

The environment contains the following services:

  • PostgreSQL database
  • MinIO object storage
  • Redis
  • Hugr server
  • Prometheus for monitoring
  • Grafana for visualization

Examples

1. Get started

Folder: get-started/

In this example we will set up a Northwind database on PostgreSQL and create GraphQL SDL schema for it.

2. PostgresSQL example

In this example we will create an empty data PostgreSQL data base, describe it in GraphQL SDL and attach it into Hugr as a data source. Folder: postgres-examples/

About

The hugr examples repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published