|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/go-full-stack-jwt-authorization-with-spring-boot-and-angular/
课程评论:没有评论
课程名称:全面掌握基于Spring Boot和Angular的JWT认证 课程概述:本课程将指导学员创建一个用户管理系统项目。该系统将包括登录、注册页面,用户可以通过这些页面进行登录和注册,并能够查看所有用户的详细信息。课程将使用Spring Boot、Angular和MySQL来实现该项目。在项目中,我们将实现对用户的CRUD(创建、读取、更新、删除)操作,用户的登录、注册和授权将通过这些操作进行处理。这些CRUD操作将由Angular请求,后端将构建基础架构,前端将以用户界面的形式呈现数据。 我们的项目主要围绕用户操作,包括用户登录、注册、用户列表等。此外,还将实现基于角色的应用,使用不同角色如“管理员”和“用户”。用户角色将具备典型的登录、注册操作,而管理员角色则具备特定的功能,如查看所有用户。我们将根据用户角色提供不同的授权方式,并确保在Angular和Spring Boot中安全实施。 项目架构包含两个主要组件:服务器端和客户端。 服务器端:主要使用Spring Boot作为开发库,搭建整个后台基础设施。将实现模型-视图-控制器架构,并以Spring Security和JWT增强安全性。将通过Spring Rest Controller处理客户端API调用,使用MySQL作为数据库,并利用Java持久化API和Hibernate进行对象关系映射。项目中将使用JPA Repository和Crud Repository处理常见的数据库操作,同时利用Lombok库简化代码,避免手动编写getter、setter等。 客户端:将在客户端使用Angular创建一个用户友好的界面,包括管理员仪表板、登录页面和注册页面,并将服务器API分配给这些页面,使用户能够方便地消费和生产数据。Angular中也将实现模型-视图-控制器架构,并利用TypeScript的特性。同时,课程还将实现Angular中的安全性和授权,根据不同角色展示未授权和未找到页面。 本课程将详细讲解上述内容,帮助学员掌握如何构建安全的全栈应用。
In this course, we will create a project like an user-management-system. When I say user-management-system, we can think of it like that we will have login, register pages and users can sign-in and sign-up from those pages then we can list all users and we can see the details of users.And we will implement this project using Spring Boot, Angular, and MySQL.In our project, we will implement CRUD operations. These CRUD operations will be for users. We will use users for user sign-in, sign-up and authorization operations.These CRUD operations will be requested from Angular. So on the backend, we will create an infrastructure for these CRUD operations and on the frontend, we will serve them with the user interface.Our project goes on with User operations.Our main operations will be user login, register, user-list etc.Also, we will go on with the role based application. So we will use different roles like "Admin", "User". User role will have typical operations like login, register.But admin role will have some specific operations like to list all users. Then we will provide different authorizations to these users according to the role.And this all things will be provided with a secure way in both Angular and Spring Boot.We will have two main components to implement our project.These are server side and client side.In Server Side:Of course here, our main library will be Spring-boot. We will implement the whole infrastructure on the backend with the Spring boot. It will provide easy and fast configuration to us.We will implement the Model view controller architecture on our project.Spring-security will be one of the main topics in our application. Also, we will use JWT to provide security. Also in the JWT part, we will see the differences between access-tokjen and refresh-token.In Spring Boot, Data will be presented to the client as an API call so Spring Rest Controller will be used to handle it.We will use MySQL as Database. Because most of us are familiar with it.We will also use Object Relational Mapping with Java Persistence API and Hibernate.You know, We can map our database tables to objects with hibernate.We will use JPA Repository and Crud Repository in Spring Boot.So these repository templates will handle common database operations like save, update, find, delete.With Spring Boot, we will also use the Lombok library to clear code.You know that we don't want to implement getter, setter, equals and hashcode. So we can escape it using Lombok @Data or @Value annotation.We will use Maven To handle all dependencies on the server side. Actually, here we can also use Gradle. Gradle provides better performance than maven but Maven is the most common one. So we'll go on with maven.That's all about Server side.Let's talk about Client Side.We will create an angular application on the client side and it will provide a cool user-interface. So we will create some pages like admin dashboard, login page and register-page. Then we will assign the server apis to these pages and we will consume and produce the data from the user-interface easily and user friendly.On angular, we will also implement the model view controller architecture. We will use the cool features of typescript etc.Last but not least, we will implement security and authorization on angular also. We will work with different roles and according to these roles, we will implement unauthorized and not-found pages on the user interface also.We will see the details of them one by one.