Skip to content

Commit

Permalink
Agregando graphiql para hacer mas facil la exploración de la API (#10)
Browse files Browse the repository at this point in the history
Tomando el feedback de @Pillin, este PR agrega la ruta `/graphiql` a la
aplicación.

Cuando un usuario va a `https://localhost:3000/graphiql` (Y está
logeado) se encuentra con una instancia de
[GraphiQL](https://github.com/graphql/graphiql).



![image](https://github.com/JSConfCL/tickets/assets/952992/d9081146-7e07-4385-960b-2ac32d7ac7af)

Ahi se puede explorar el esquema, hacer queries, ETC. 

Lo cool...esque GraphiQL usa el usuario logueado para lanzar queries.

### TODO: 
- Previo a la salida a producción, esta ruta deber ser deshabilitada. Si
bien esta API es la misma que los usuarios interactuan en la aplicación,
es mejor no deployearla IMO. Especialmente si vamos a limitar el acceso
a la API desde ciertos dominios.
  • Loading branch information
fforres authored Oct 18, 2023
1 parent aee3929 commit 9517cf8
Show file tree
Hide file tree
Showing 13 changed files with 1,379 additions and 99 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
NEXT_PUBLIC_GRAPHQL_ENDPOINT='https://api.jsconf.dev/graphql'
NEXT_PUBLIC_TOKEN_STORAGE_KEY='HS:token_storage_key'
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/api/types.ts
Loading

0 comments on commit 9517cf8

Please sign in to comment.