You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,7 +58,7 @@ from data.v2.build import build_all
81
58
build_all()
82
59
```
83
60
84
-
Visit [localhost:8000/api/v2/](localhost:8000/api/v2/) to see the running API!
61
+
Visit [localhost:80/api/v2/](localhost:80/api/v2/) to see the running API!
85
62
86
63
Each time the build script is run, it will iterate over each table in the database, wipe it, and rewrite each row using the data found in data/v2/csv.
87
64
@@ -95,9 +72,9 @@ make wipe_db
95
72
96
73
## Docker and Compose
97
74
98
-
There is also a multi-container setup, managed by [Docker Compose](https://docs.docker.com/compose/). This setup allow you to deploy a production-like environment, with separate containers for each services.
75
+
There is also a multi-container setup, managed by [Docker Compose](https://docs.docker.com/compose/). This setup allows you to deploy a production-like environment, with separate containers for each services and is recommended if you need to simply spin up PokeAPI.
Browse [localhost/api/v2/](http://localhost/api/v2/) or [localhost/api/v2/pokemon/bulbasaur/](http://localhost/api/v2/pokemon/bulbasaur/) on port `80`.
When you start PokeAPI with the above docker-compose setup, an [Hasura Engine](https://github.com/hasura/graphql-engine) server is started as well. It's possible to track all the PokeAPI tables and foreign keys by simply
100
+
101
+
```sh
102
+
# hasura cli needs to be installed and available in your $PATH: https://hasura.io/docs/latest/graphql/core/hasura-cli/install-hasura-cli.html
103
+
# hasura cli's version has to be v2.0.0-alpha.5
104
+
make hasura-apply
105
+
```
106
+
107
+
When finished browse http://localhost:8080 and you will find the admin console. The GraphQL endpoint will be hosted at http://localhost:8080/v1/graphql.
108
+
109
+
A free public GraphiQL console is browsable at the address https://beta.pokeapi.co/graphql/console/. The relative GraphQL endpoint is accessible at https://beta.pokeapi.co/graphql/v1beta
110
+
111
+
A set of examples are provided in the directory [/graphql/examples](./graphql/examples) of this repository.
* Spring Boot [dlfigueira/spring-pokeapi](https://github.com/dlfigueira/spring-pokeapi) | _Auto caching_
127
+
* Swift [kinkofer/PokemonAPI](https://github.com/kinkofer/PokemonAPI)
128
+
116
129
## Donations
117
130
118
-
Help to keep PokéAPI running! If you're using PokéAPI as a teaching resource or for a project, consider sending us a $10 donation to help keep the service up. We get almost 20 million requests a month!
131
+
Help to keep PokéAPI running! If you're using PokéAPI as a teaching resource or for a project, consider sending us a $10 donation to help keep the service up. We get 60 million requests a month!
119
132
120
133
Thank you to all our backers! [Become a backer](https://opencollective.com/pokeapi#backer)
0 commit comments