A containerized example that creates a GraphQL API (with a graphiql interactive interface) from a running postgres instance. See docker-compose.yml for the detail of the two services.
Other files of interest:
- ./migrations/001.sql: psql schema definition + initial seeds
- ./index.ts: postgraphile server code in TypeScript
- postgraphile.Dockerfile: Dockerfile to containerize postgraphile server
- .env: .env
- Install Docker
- Check 001.sql and .env files, modify if needed
- Run docker compose up
- Interact with the GraphiQL at http://localhost:3001/graphiql