This project is a full-stack application built using Node.js, Express, and React with Apollo Server and Apollo Client for GraphQL integration.
It provides a GraphQL API that manages:
- π€ User details
- β Todos
- GraphQL API using Apollo Server
- React frontend using Apollo Client
- Fetch and display Users and Todos
- Simple full-stack architecture (client + server)
Make sure you have the following installed:
- Node.js
- npm (comes with Node.js)
Install Yarn globally:
npm install -g yarnClone the repository
git clone <repo-url>πΉ Start Backend (Server)
cd server
yarn install
yarn startThis starts the GraphQL server.
πΉ Start Frontend (Client)
Open a new terminal:
cd client
yarn install
yarn startThis starts the React app in your browser.
π Usage
Once both server and client are running: React app will open in browser It will fetch and display Users and Todos from the GraphQL API
π Project Structure
/server β Node.js + Express + Apollo Server
/client β React + Apollo Clientπ‘ Notes
Make sure the server is running before starting the client
Default ports: Server: http://localhost:8000 Client: http://localhost:3000