Web 開發

Express API 設計與實作

用 Express 建立結構清楚、具備驗證、認證、測試、資料庫整合與部署能力的 API。

學完能做到

  • Express 專案與 Routing
  • Request、Middleware 與 Validation
  • 錯誤處理、Logging 與環境設定
  • MongoDB / PostgreSQL 整合

實作專案

  • 完整 REST API
  • JWT 認證服務
  • 串接 AI 功能的 Express 應用

適合對象

  • 已有 JavaScript 或 Node.js 基礎的人
  • 想學習 API 實務設計的開發者

Curriculum

課程大綱

01

開發基礎

01

What is Express

02

Setup

03

Routing Basics

04

Middleware Explained

05

Request

06

Project Structure

07

Environment Variables

08

Error Handling

09

Logging System

02

應用開發

01

Validation

02

MongoDB Integration

03

PostgreSQL integration

04

Repository Pattern

05

Authentication Basics

06

JWT Implementation

07

Security Best Practices

08

File Upload

09

Background jobs

03

專案與部署

01

Api design best practices

02

Testing

03

Dockerize Express App

04

Deployment

05

Performance Optimization

06

Microservices introduction

07

Express AI integration