This project consists of 6 distinct applications or services that together, make the catstronaut supergraph:
front-end
: The catstronaut React application from the liftoff seriessubgraph-tracks
: This was previously theserver
in the lift-off series, but converted to a subgraph.subgraph-reviews
: A net new subgraph for handling review data.apollo-router
: Basic router config setup.rest-reviews-api
: This API is the source of truth for review data or our application. This project is intended to represent 2 different APIs: One for review resource data and another for metrics. It's combined in the same app for simplicity sake, but we'll treat this as two separate APIs during the workshop.postgres database
: In addition to the above packages, the provideddocker-compose.yaml
file will also spin up a local postgres database and pre-populate it with review data on start up.
You will need:
- Install the Rover CLI.
- Make sure Docker is installed.
- Clone this repository.
- Download dependencies with
docker compose
To spin up this project:
docker compose up
or
docker compose up -d
The first time you run the command, it may take a while to download all of the dependencies. The services are defined in the docker-compose.yaml
file (default file name and path)
Visit the local URLs to confirm things are working:
- Web application - Catstronaut React app
- Router sandbox - View schema and execute queries with sandbox