S SmartDocs

後端開發

Node.js、NestJS、Spring Boot、Python 後端、Socket、Nginx 與金流整合的伺服器端開發。

Springboot 更新於 2026-08-14

Spring Boot 後端開發實戰教材

一套完整的 Spring Boot 教學素材:以「線上書店 REST API」專案貫穿, 涵蓋 REST API 設計、JWT 認證授權、Hibernate/JPA + MySQL、Docker 容器化與 Postman 測試。

閱讀文章 →
Springboot 更新於 2026-08-14

Bookstore API——Spring Boot 教學專案

線上書店後端 REST API,本專案是《Spring Boot 後端開發實戰教材》的隨附程式碼, 所有檔案都加上了詳細的中文註解,建議搭配教材 PDF 閱讀。

閱讀文章 →
Springboot 更新於 2026-08-14

前言

這是一份「做中學」的 Spring Boot 後端開發教材。全書以一個完整、可直接執行的 線上書店 REST API 專案貫穿,學完後你將能夠:

閱讀文章 →
Springboot 更新於 2026-08-14

開發環境準備

工欲善其事,必先利其器。本章逐一安裝並驗證開發所需的工具。 如果某項工具已經安裝,直接執行對應的「驗證指令」確認版本即可。

閱讀文章 →
Springboot 更新於 2026-08-14

建立專案與認識架構

本章認識 Spring Boot 專案的骨架:如何產生專案、目錄結構的意義、 pom.xml 在管什麼,以及貫穿全書的「三層式架構」。

閱讀文章 →
Springboot 更新於 2026-08-14

Hibernate / JPA 與 MySQL 資料庫

本章打通「Java 物件」與「資料庫資料」之間的橋樑: 理解 ORM 的概念、設定資料庫連線、定義 Entity 與 Repository, 並學會觀察 Hibernate 在背後產生的 SQL。

閱讀文章 →
Springboot 更新於 2026-08-14

REST API 設計與實作

本章是全書的核心之一:完整實作書籍的 CRUD API, 正確運用 GET、POST、PUT、PATCH、DELETE 五種 HTTP 方法,並建立統一的錯誤處理機制。

閱讀文章 →
Springboot 更新於 2026-08-14

JWT 認證與授權

到目前為止,任何人都能呼叫寫入類的 API。本章加上安全機制: 使用 Spring Security 搭配 JWT,實作註冊、登入、 認證(Authentication)與角色授權(Authorization)。

閱讀文章 →
Springboot 更新於 2026-08-14

使用 Postman 測試 API

本章使用教材附帶的 Postman 測試集合, 學會匯入集合、管理變數、閱讀與撰寫自動化測試腳本(Tests), 並用 Collection Runner 一鍵跑完整套測試。

閱讀文章 →
Springboot 更新於 2026-08-14

Docker 容器化部署

最後一哩路:把專案打包成 Docker 映像檔,讓它在任何機器上都能 一致地執行;再用 Docker Compose 把「MySQL + API」包成一鍵啟動的整組服務。

閱讀文章 →
Springboot 更新於 2026-08-14

常見問題排除(FAQ)

原因:8080 被其他程式佔用。 解法:找出並關閉佔用程式(macOS:lsof -i :8080), 或修改 application.yml 的 server.port。

閱讀文章 →
backend EN 更新於 2026-02-03

Module 1: RESTful API Fundamentals

REST (Representational State Transfer) is the dominant architectural style for web APIs. This module covers concepts you need before building backends with any framework.

閱讀文章 →
backend EN 更新於 2026-02-03

RESTful API Best Practices

Practical guidelines for designing and implementing production-quality REST APIs.

閱讀文章 →
backend EN 更新於 2026-02-03

Module 2: Python FastAPI

FastAPI is a modern, high-performance Python web framework for building APIs. It uses type hints and Pydantic for validation and automatically generates OpenAPI (Swagger) documentation.

閱讀文章 →
backend EN 更新於 2026-02-03

Module 3: Python Flask

Flask is a lightweight micro-framework for Python. You can build REST APIs, server-rendered web apps with templates (Jinja2), or both.

閱讀文章 →
backend EN 更新於 2026-02-03

Module 4: Node.js Backend Development

Node.js lets you build backend services in JavaScript (or TypeScript) using the same language as the browser. Express is the most common web framework for REST APIs.

閱讀文章 →
backend EN 更新於 2026-02-03

Module 5: Nest.js Backend Development

Nest.js is a TypeScript-first backend framework built on Node.js. It uses modules, dependency injection, and decorators similar to Angular, and is well-suited for scalable REST APIs and microservices.

閱讀文章 →
backend EN 更新於 2026-02-03

Module 6: SQL Databases for Backend

Relational databases (SQL) store data in tables with rows and columns, linked by relationships and foreign keys. They are the default choice for structured, transactional data in backend applications.

閱讀文章 →
backend EN 更新於 2026-02-03

Module 7: NoSQL Databases for Backend

NoSQL databases use storage models other than traditional relational tables. Common types: document (e.g. MongoDB), key-value (e.g. Redis), wide-column (e.g. Cassandra), graph (e.g. Neo4j). This module focuses on documen

閱讀文章 →
backend EN 更新於 2026-02-03

Backend Tech Stack — Quick Reference

One-page reference for REST, Python (FastAPI/Flask), Node.js/Nest.js, and SQL/NoSQL.

閱讀文章 →
backend EN 更新於 2026-02-03

Backend Development Training Materials

Comprehensive training materials for backend development, covering RESTful APIs, Python (FastAPI & Flask), Node.js, Nest.js, and SQL/NoSQL databases.

閱讀文章 →
nest.js EN 更新於 2026-02-03

📘 Comprehensive JSON Guide

JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format that is

閱讀文章 →
nest.js EN 更新於 2026-02-03

Beginner Level: NestJS Fundamentals

NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side applications. It uses modern JavaScript, is built with TypeScript, and combines elements of OOP (Object-Oriented Progra

閱讀文章 →
nest.js EN 更新於 2026-02-03

Detailed Request Flow: GET /todos

This document explains step-by-step how NestJS handles the request curl http://localhost:3000/todos.

閱讀文章 →