Skip to content

A GraphQL server built with Nestjs and apollo server consumed by a React app built with Vite and using apollo client.

Notifications You must be signed in to change notification settings

niemet0502/nodejs-graphql-server-with-react-apollo-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nestsj graphQL server and React app

Introduction 🖖

This repository contains a Nestjs server that exposes a graphQL api built with apollo server and a React app built with Vite that consumes the api using apollo client.

How to run the project

Important

Please make sure you have mysql database running on your device, you can also use a docker container, just be sure to update the database configuration in the server.

  • Clone the repository
    git clone git@github.com:niemet0502/nodejs-express-server.git
  • Move inside each project to install dependencies and run project

  • Server

    cd graphql-server
    npm install
    npm run start:dev

From now you will have the server running oh the port 5000. Go to localhost:5000, you will have the playground below with the schemas and documentation.

playground

  • Client
    cd client
    npm install
    npm run dev

Now the client is running on the port 5174 that provides the interface below.

client interface

Finally you can play with that by adding or deleting users.

Contribution

If you find an issue with this project or you have any suggestion please help out. I am not perfect.

About

A GraphQL server built with Nestjs and apollo server consumed by a React app built with Vite and using apollo client.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published