This project was bootstrapped with Create React App.
Then I installed the following packages to play around with GraphQL :
- apollo-client
- react-apollo
- apollo-cache-inmemory
- apollo-link-http
- graphql
- graphql-tag
(no need to run it it's already done)
npm install --save apollo-client react-apollo apollo-cache-inmemory apollo-link-http graphql graphql-tagIn the project directory, you can run:
Clone the repo :
git clone https://github.com/graphql/swapi-graphql.gitSet the server port in package.json :
"start": "PORT=9999 node lib/server/main.js",npm install
npm run build
npm start