Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Complete React GraphQL MongoDB for both frontend and backend
Rating: 4.4 out of 5(14 ratings)
4,597 students

Complete React GraphQL MongoDB for both frontend and backend

Master GraphQL by creating an CRUD application with React and MongoDB
Created byKim Chen
Last updated 10/2021
English

What you'll learn

  • Build CRUD application with ReactJS, GraphQL, NodeJS, MongoDB and Express
  • Learn GraphQL flexibility
  • Learn how to fetch data from MongoDB and show in React app
  • Learn how to create model with Mongoose

Course content

2 sections23 lectures1h 4m total length
  • Create express server and import dependencies4:56

    In this video, we will first create a server folder and install the necessary package such as graphql express and apollo-server-express. We will also test the graphql with simple Query to return a string.

  • Create typedefs and resolvers files1:47

    In this part, we are going to extract the typeDefs and Resolvers to two separate files. Then we will test a simple query

  • Mongoose and Model Setup1:23

    In this video, we are going to create a model with Mongoose which is used to create and reading documents in MongoDB later.

  • Connecting to MongoDB2:46

    In this video, we are going to connect our project to the MongoDB


  • Fetch data with graphql2:09

    In this part, we are going to create the Query in graphql to fetch the data (todo lists) from the MongoDB

  • Create data(todo) using Mutations3:06

    In this part, we are going to create todo by mutation

  • Fetch a single data with Query1:44

    In this part, we are going to get the single todo from MongoDB with graphQL. It will return that specific todo if we pass the id to the function.

  • Delete a todo with Mutations2:16

    In this part, we are going to delete the todo by providing the id with mutations


  • Update the data with Mutations2:44

    In this part, we will pass the id and also the updated value to update the todo inside MongoDB with graphql.

Requirements

  • basic react

Description

Do you want to learn to implement GraphQL, React, Express, NodeJS and MongoDB in one project?

Why we need GraphQL?

The fact that clients can receive exactly the data they need from the API is frequently mentioned as a major benefit of GraphQL by developers. They are no longer reliant on REST endpoints that return predetermined and inflexible data structures. Instead, the client has control over the shape of the API response objects.

Why choose ReactJS?

Facebook, Dropbox, Khan Academy, CodeAcademy, Netflix, Airbnb, PayPal, Walmart, Tesla Motors, IMDb, and more well-known companies and startups use React. React is used in a slew of well-known apps.

Why is this technology being used by so many excellent companies and startups? The answer is that it is unquestionably a high-quality frontend development tool.

Given that React is used by such well-known organizations as Facebook and PayPal, it must be a very helpful library.

Why learn NodeJS?

Node. js may easily be used as a server-side proxy, handling a huge number of concurrent connections in a non-blocking manner. It's particularly handy for proxying various services with varying response times or collecting data from multiple sources.


What we will learn inside in this course?

We will create a Todo app which level up your skill on creating a CRUD app which is useful for building almost different types of app like social media app, which also need to know how to implement CRUD operations.

We will walk through

At the server side

  • Create NodeJS server and install necessary framework like Express and other dependencies

  • Create typedefs and resolvers files

  • Mongoose and Model Setup

  • Connecting to MongoDB

  • Fetch data with graphql

  • Create data(todo) using Mutations

  • Fetch a single data with Query

  • Delete a todo with Mutations

  • Update the data with Mutations


    At client side

  • Create react app and add bootstrap

  • Install graphql and add custom CSS

  • Add Bootstrap list group

  • Install Apollo client

  • Create graphql query and mutation

  • Render todos

  • Extract  React components

  • Create a new todo

  • Delete specific todo

  • using useRef to define area

  • use Context to store the selected Id

  • Change UI according to selected id

  • Update todo

  • Get single todo and fix bugs

It's the most up-to-date and entertaining GraphQL course on the market, and it's backed by a 30-day Udemy money-back guarantee.


Who this course is for:

  • Developer who want to build high performance web app