|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-full-stack-spring-boot-and-react-inc-jwtrouterredux/
课程评论:没有评论
课程名称:Java 全栈开发:Spring Boot 和 React(包含 JWT、路由、Redux) 课程概述:在本课程中,我们将创建一个类似在线商品销售的项目。用户可以在产品列表页面浏览商品并进行购买,购买记录会在后续进行存储和展示。该项目将使用 Spring Boot、ReactJS 和 MySQL 开发。在项目中,我们将实现对用户和产品的 CRUD 操作,用户用于登录、注册和授权,产品用于创建、编辑和删除。ReactJS 将发送 CRUD 操作的请求,后端将为这些操作建立基础架构,前端则提供用户界面。 本项目主要包括用户和产品操作,关键功能包括用户登录、注册、产品列表、创建产品和删除产品等。同时,我们会实现角色基础的应用,使用“管理员”和“用户”等不同角色,并根据角色提供不同的授权。这些操作将确保在 React 和 Spring Boot 中以安全的方式进行。 项目分为两个主要组件:服务端和客户端。 **服务端:** - 主要库为 Spring Boot,整个后端基础架构将基于其构建,提供快速配置。 - 实现模型-视图-控制器(MVC)架构。 - 使用 Spring Security 和 JWT 来确保安全。 - 数据将通过 API 调用向客户端呈现,使用 Spring Rest Controller 进行处理。 - 数据库使用 MySQL,进行对象关系映射(ORM)操作,使用 Java 持久化 API 和 Hibernate。 - 使用 JPA Repository 和 Crud Repository 处理常见数据库操作。 - 引入 Lombok 库以简化代码,避免手动实现 getter、setter 方法。 - Maven 用于处理服务器端的所有依赖关系。 **客户端:** - 创建 ReactJS 应用程序,实现良好的用户界面,包括主页、管理仪表板、登录页面和注册页面。 - 将服务器 API 分配给这些页面,方便用户-friendly 数据消费和生产。 - 在 ReactJS 中也将实现安全性和授权,根据不同角色实施未授权和未找到页面。 通过本课程,您将逐步学习如何构建具有复杂功能的完整应用程序,并掌握 Spring Boot 和 ReactJS 的实际应用。
In this course, we will create a new project like an online-product-seller.When I say online-product-seller application, we can think of it like that we will have a product-list page. Somehow users or customers will see these product-lists and they can buy one of them. Of course, at the end of it, this purchase will be stored and displayed later.And we will implement this project using Spring Boot, ReactJS, and MySQL.In our project, we will implement CRUD operations. These CRUD operations will be for users and products. We will use users for user sign-in, sign-up and authorization operations. And we will use the products for creating, editing, and deleting product operations.These CRUD operations will be requested from ReactJS. 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 and product operations.Our main operations will be user login, register, product-list, create-product, delete-product etc.Also, we will go on with the role based application. So we will use different roles like "Admin", "User". 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 React 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.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. We can use other databases also but most of us familiar with MySQL.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 a ReactJS application on the client side and it will provide a cool user-interface. So we will create some pages like home-page, 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.Last but not least, we will implement security and authorization on ReactJS 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.