This is a simple project demonstrating how to build a GraphQL application with React and Node.js using Apollo Client and Apollo Server. The project includes basic CRUD operations for managing repositories.
- Node.js and npm (or yarn) installed on your machine.
-
Clone the repository:
git clone https://github.com/curiosum-dev/graphql-in-react-apps-blog-post.git
-
Navigate to the server and client directories and install dependencies:
cd graphql-in-react-apps-blog-post/graphql-server npm install cd graphql-in-react-apps-blog-post/graphql-client npm install
-
Start GraphQL server:
cd graphql-server node server.js
The GraphQL server will run at http://localhost:4000/graphql.
-
Start React client:
cd graphql-client npm start
The React app will be accessible at http://localhost:3000.
Open your browser and navigate to http://localhost:3000 to interact with the GraphQL-powered React application.
Explore the functionality to add, update, and remove repositories.
Contributions are welcome! Feel free to open issues or pull requests.
This project is licensed under the MIT License.