muneeb706 / react-graphql-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL API client in React using @apollo/client

In this project we are consuming API's developed in django-graphql.

Follow the steps to run configure and run this project.

  1. Make sure you have the following development environment:

  2. NPM 8.1.3 (You can be flexible with the version but the implementation was tested with this version).

  3. Create React App

  4. Any IDE or text editor of your choice.

  5. Access to Command-Line or Terminal.

  6. Setup GraphQL API implemented in this django-graphql and run it locally. Most probably, you will get a CORS issue if you run it locally, to avoid this issue make sure you enable CORS requests and follow instructions in the README file of the GitHub repository.

  7. Clone this repository.

  8. Open the terminal or command line.

  9. Navigate to the location where you cloned this repository and go to react-graphql-client folder where code files are present.

  10. Install the dependencies by entering following command:

    npm install

  11. Run the React development server:

    npm start

About


Languages

Language:HTML 64.9%Language:CSS 35.1%