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.
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.shTo down the environment, run:
sh scripts/stop.shThe environment contains the following services:
- PostgreSQL database
- MinIO object storage
- Redis
- Hugr server
- Prometheus for monitoring
- Grafana for visualization
Folder: get-started/
In this example we will set up a Northwind database on PostgreSQL and create GraphQL SDL schema for it.
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/