Title
s

Simon

03/01/2019, 2:21 PM
I'm a complete noob regarding react. I'm unsure how I'm supposed to create a simple react app that includes the playground. The readme in https://github.com/prisma/graphql-playground/tree/master/packages/graphql-playground-react and https://github.com/prisma/graphql-playground are not synced. I can't get the instructions of the root readme running. The other ones give me a playgound. But the css is screwed up...
j

Jenkins

03/01/2019, 2:25 PM
Don't run the playground in your own react app. Run it via the electron app, the graphql-cli, your GraphQL server or directly via Prisma. They all come with it preconfigured.
If you spin up a Prisma server the GraphQL Playground is available at the endpoint (http://localhost:4466/ by default).
s

Simon

03/01/2019, 2:27 PM
I want to publish one site running the playground that can access multiple graphql endpoints
j

Jenkins

03/01/2019, 2:39 PM
I see. I tested now, and following the instructions I also could not make it work. I would try and holla at
@ huv1k
when he's back from holiday. (Deliberately not tagging him).
s

Simon

03/01/2019, 2:41 PM
I got it somewhat better by importing the
playground.css
from
graphql-playground
but it appears there are still missing parts...