CatsTronauts is a full-stack application that demonstrates the use of GraphQL with a React frontend and a Node.js backend. This project serves as a learning resource for building and integrating GraphQL APIs with modern web applications.
Before you begin, ensure you have the following installed on your machine:
- Node.js (v14 or higher)
- npm (v6 or higher)
Follow these steps to set up the project locally:
- Navigate to the
server
folder:cd server
- Install the dependencies:
npm install
- Start the GraphQL API server:
npm start
- Open a new terminal window and navigate to the
client
folder:cd client
- Install the dependencies:
npm install
- Start the React application:
npm start
The React application should automatically open in your default web browser at http://localhost:3000
.
server
: Contains the code for the GraphQL server.client
: Contains the code for the React application.
For more information on GraphQL and React, check out the following resources: