Skip to content

akashdeepnandi/Products-CRUD-with-React-and-GraphQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product CRUD with React and GraphQL

Node.js



This is an Web App, Front-End made with React.js and backend is a GraphQL API.
  • For client interaction with GraphQL, apollo-client has been used.
  • For database an mock api created by mockapi.io is used.
  • This is simple started project to show the creation of GraphQL API with apollo server
  • Also to showcase the basic steps of integration of GraphQL API with React.js Front-End.

API Documentation:

API is self documentated, thanks to GraphQL. It is just using a single resources products. Sample GrahpQL Query.

query getProducts {
	products {
		id
		name
		material
	}
}

Usage:

You can start using this application just by running to four simple steps, after downloading the project and navigating to project directory

  • Install server dependencies
     npm i
    
  • Start server
     npm start
    
  • Navigate to client directory and run this to install client dependencies(make sure you have yarn installed)
     yarn install
    
  • Start running the client
     yarn start
    

Screenshots:

Node.js

Home Page

Node.js

Product List Page

Node.js

Product Details Page

Node.js

Add Product Page


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published