Coursera 笔记

Module 03 · Express Web Application FrameworkExpress Web 应用框架

Hands-on Lab: CRUD Operations with Node.js and Express动手实验:使用 Node.js 与 Express 执行增删改查操作

In this lab you will learn how to create a Friend's list using Express server. Your application should allow you to add a friend with the following details: First name, Last name, Email and Date of birth. You will also be providing the application the ability to retrieve details, change details and delete the details.
在这个实验室中,您将学习如何使用 Express 服务器创建好友列表。您的应用程序应允许您添加具有以下详细信息的好友:名字、姓氏、电子邮件和出生日期。您还将为应用程序提供检索详细信息、更改详细信息以及删除详细信息的功能。

You will be creating an application with API endpoints to perform Create, Retrieve, Update and Delete operations on the above data using an Express server.
您将使用 Express 服务器创建一个应用程序,其中包含 API 端点以执行对上述数据的创建、检索、更新和删除操作。

You will also learn to provide authenticated access to the endpoints. You will use cURL and Postman to test the implemented endpoints.
您还将学习如何提供端点的认证访问。您将使用 cURL 和 Postman 来测试已实现的端点。

Objectives

  • Create API endpoints to perform Create, Retrieve, Update and Delete operations on transient data with an Express server.
    创建 API 端点以使用 Express 服务器执行创建、检索、更新和删除临时数据的操作。
  • Implement authentication at the session level using JSON Web Tokens (JWT) for authorized access.
    在会话级别使用 JSON Web Tokens(JWT)实现身份验证以授权访问。

📄 动手实验 - 使用 Node.js 进行 CRUD 操作.pdf