Tutorial to build a GraphQL API using Docker, PostgreSQL and Postgraphile.
This project requires to have Docker and Docker Compose installed on your machine. To install them follow the steps described here: Requirements
To rebuild this project from scratch, follow the tutorial on the Wiki
To run the project database and GraphQL API with the current data model, simply go to the project root and execute the following command:
$ cd docker-postgresql-postgraphile
# Start containers
$ docker-compose up
You can navigate to the following URL to access GraphiQL, the interactive documentation of your API:
- Linux:
http://localhost:5433/graphiql
- Windows Pro:
http://localhost:5433/graphiql
- Windows Home:
http://<your_docker_ip>:5433/graphiql
, you can get<your_docker_ip>
with the commanddocker-machine ip