In this project we are consuming API's developed in django-graphql.
Follow the steps to run configure and run this project.
-
Make sure you have the following development environment:
-
NPM 8.1.3 (You can be flexible with the version but the implementation was tested with this version).
-
Any IDE or text editor of your choice.
-
Access to Command-Line or Terminal.
-
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.
-
Clone this repository.
-
Open the terminal or command line.
-
Navigate to the location where you cloned this repository and go to react-graphql-client folder where code files are present.
-
Install the dependencies by entering following command:
npm install
-
Run the React development server:
npm start