Complete React GraphQL MongoDB for both frontend and backend
- Description
- Curriculum
- FAQ
- Reviews
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.
-
1Create express server and import dependenciesVideo lesson
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.
-
2Create typedefs and resolvers filesVideo lesson
In this part, we are going to extract the typeDefs and Resolvers to two separate files. Then we will test a simple query
-
3Mongoose and Model SetupVideo lesson
In this video, we are going to create a model with Mongoose which is used to create and reading documents in MongoDB later.
-
4Connecting to MongoDBVideo lesson
In this video, we are going to connect our project to the MongoDB
-
5Fetch data with graphqlVideo lesson
In this part, we are going to create the Query in graphql to fetch the data (todo lists) from the MongoDB
-
6Create data(todo) using MutationsVideo lesson
In this part, we are going to create todo by mutation
-
7Fetch a single data with QueryVideo lesson
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.
-
8Delete a todo with MutationsVideo lesson
In this part, we are going to delete the todo by providing the id with mutations
-
9Update the data with MutationsVideo lesson
In this part, we will pass the id and also the updated value to update the todo inside MongoDB with graphql.
External Links May Contain Affiliate Links read more