|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/django-with-graphql/
课程评论:没有评论
课程名称:Django与GraphQL 课程概述: 本课程将介绍GraphQL的基本概念,包括它的优缺点。我们将讨论GraphQL的主要内容,如模式、类型、查询、变更和订阅。在第一部分,我们将创建一个简单的Django项目,这也将作为Django框架的入门,学员无需任何前置知识。项目设置完成后,我们将添加GraphQL,这样你可以在自己的Django项目或者我们一起创建的简单项目中一同学习。 接下来,我将解释如何创建根模式以及如何为应用程序创建模式。此外,我们将实现新的Django URL,以使用graphiql——一个用于执行查询和变更的用户界面。一旦GraphQL就绪,我们将添加类型、查询和变更。我会展示多种编写方式,并解释我们为何可能选择某一种方式而非另一种。 在对GraphQL及其与Django的关联有了深入理解后,我们将进一步探讨一些额外内容,如令牌认证(JWT)、Relay实现、过滤器、分页等。课程最后,我们将展示如何使用我们基于Django的GraphQL后端API与前端应用(React和Angular)进行交互。我们将创建两个独立的应用程序,从Django数据库中通过我们的GraphQL API获取数据,并在前端使用Apollo库。 课程大纲:无
We will learn what is GraphQL, what are pros and cons of using it. We will talk about the main concept in GraphQL like schemas, types, queries, mutations and subscriptions.In the first section we will create plain Django project. This is introduction to Django framework and none previous knowledge is required.Once the project will be setup we will add GraphQL. In that way you will be able to follow along with either your own Django project or simple project we have created together in the first section. I will explain how to create a root schema and how to create schemas for apps. Also we will implement new Django url to use graphiql: the UI to perform or queries and mutations. Once GraphQL is ready we will add Types, Queries and Mutations. I will show you different ways to write these and explain why we might use one option over another.After we will have a solid understanding of the GraphQL and how it is connected with Django, we will dive deeper and add some extras like: Token Authentication (JWT), Relay implementations, Filters, Pagination etc.We will finish the course with the samples how to use our backend GraphQL API with front end applications based on both React and Angular. We will have 2 separate application that will fetch data from our Django Database using our graphql API. We will use apollo library on the front end.