Skip to content
Build a GraphQL API with Node, ApolloServer and MongoDB, with a React Client that performs all four CRUD operations.
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
graphql
models
README.md
package-lock.json
package.json
server-express.js
server-helloworld.js
server.js
yarn.lock

README.md

README

This application goes along with the Build a GraphQL CRUD application with Node and React - 2 part tutorial series.

Part 1: Build a GraphQL API with Node.js and Apollo-Server Tutorial can be read at: https://www.techandstartup.com/tutorials/build-a-graphql-api-with-node-and-apollo-server

Part 2: Build a React app with GraphQL Tutorial can be read at: https://www.techandstartup.com/tutorials/build-a-react-app-with-graphql

Similarly there are two parts to this app:

  1. The API uses Node with the Express web framework, Apollo-Server as the GraphQL Server and GraphQL as the query language. It uses MongoDB and the Mongoose.js ORM as it's database. To use this app you need to connect your own MongoDB in the server.js file.

To install the API's dependencies run:

npm install

  1. The Client is built with React.js and is contained in the client folder. It was generated with create-react-app. It uses Apollo Client for interacting with the GraphQL API.

To install the client packages from the client directory run:

yarn install

To run the app in your development environment run:

npm run dev

You can’t perform that action at this time.