This project was bootstrapped with Create React App. Usual instructions apply.
You need a local version of SWAPI running on port 8081
(the live version doesn't have CORS headers).
# Clone SWAPI
git clone git@github.com:graphql/swapi-graphql.git
# Install dependencies, this will also try run build-lambda and will likely fail - don't worry
yarn install
# Start server on port 8081
PORT=8081 yarn start
# Install dependencies
yarn install
# Fetch GraphQL schema from deployed SWAPI
yarn relay:fetch_schema
# Generate relay query / fragment files
yarn relay
# Start create-react-app
yarn start