Full-Stack Web Development with TypeScript 5: Craft modern full-stack projects with Bun, PostgreSQL, Svelte, TypeScript, and OpenAI (使用 TypeScript 5 的全端網頁開發:打造現代全端專案,結合 Bun、PostgreSQL、Svelte、TypeScript 與 OpenAI)
Chernenko, Mykyta, Korchunov, Artem
- 出版商: Packt Publishing
- 出版日期: 2024-08-02
- 售價: $1,610
- 貴賓價: 9.5 折 $1,530
- 語言: 英文
- 頁數: 272
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1835885586
- ISBN-13: 9781835885581
-
相關分類:
PostgreSQL、SQL、JavaScript、TypeScript
海外代購書籍(需單獨結帳)
相關主題
商品描述
Unleash the power of modern web development and master both frontend and backend development by building a real-world application
Key Features:
- Integrate AI capabilities in an application using the OpenAI API and learn AI-based features
- Build robust web applications with advanced TypeScript features like typing, generics, classes, and interfaces
- Implement user authentication and authorization mechanisms to protect your apps and user data
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
This book takes you on a journey with TypeScript 5, introducing its nuances and advantages over traditional JavaScript, explaining TypeScript basics, and highlighting the syntax, typing, generics, classes, and interfaces. Expert advice will help you build your understanding of TypeScript's role in modern web applications.
You'll gain hands-on experience with the tools required to write full-stack web applications end to end, beginning with setting up the Bun environment for backend development. This book also explores server-side functionality such as authentication, routing, and database integration with PostgreSQL. The second part of the book focuses on the integration of the OpenAI API, demonstrating the use of the GPT API for different use cases. The final part covers frontend development using Svelte, guiding you through UI design, state management, and performance optimization. Each chapter has real-world examples and comparisons to other technologies, providing you with a comprehensive understanding of full-stack development.
By the end of this book, you'll have learned how to build modern web applications using TypeScript 5 and confidently tackle full-stack development challenges.
What You Will Learn:
- Develop a chat application by implementing frontend and backend features effectively
- Build powerful backends using PostgreSQL
- Write unit tests efficiently for cleaner and more reliable apps
- Understand full-stack application architecture for better scalability and maintainability
- Create dynamic and responsive UIs with Svelte
- Use debugging, testing, and logging tools in web applications to quickly detect and minimize errors
Who this book is for:
This book is for junior to mid-level software engineers with foundational knowledge of JavaScript and web development, who are enthusiastic about the most cutting-edge technologies and want to expand their understanding of building full-stack applications end to end. Familiarity with the fundamentals of frontend and backend development will help you get the most out of this book.
Table of Contents
- TypeScript Fundamentals
- TypeScript Deep Dive - Typing, Generics, Classes, and Interfaces
- Configuring a Backend Environment with Bun and Hono
- Building Backend Infrastructure with Bun, Hono, and TypeScript
- Improving Reliability - Testing and Validation
- Advanced Backend Development - Security, Throttling, Caching, and Logging
- PostgreSQL Basics, Storage, and Setup
- Interacting with PostgreSQL Using Libraries
- Interacting with PostgreSQL Using Prisma ORM
- Basics of Integrating External APIs with TypeScript and Hono
- Setting Up and Configuring the OpenAI API for the Backend
- Introduction to Svelte for Frontend Development
- Setting up the Svelte Project
- Svelte Chat Application Development
- Advanced Svelte Techniques
商品描述(中文翻譯)
釋放現代網頁開發的力量,通過構建一個實際應用程序來掌握前端和後端開發。
主要特點:
- 使用 OpenAI API 在應用程序中集成 AI 功能,學習基於 AI 的特性
- 利用 TypeScript 的高級特性(如類型、泛型、類和介面)構建穩健的網頁應用程序
- 實施用戶身份驗證和授權機制,以保護您的應用程序和用戶數據
- 購買印刷版或 Kindle 版書籍可獲得免費 PDF 電子書
書籍描述:
本書帶您踏上 TypeScript 5 的旅程,介紹其相對於傳統 JavaScript 的細微差別和優勢,解釋 TypeScript 的基本概念,並強調語法、類型、泛型、類和介面。專家的建議將幫助您建立對 TypeScript 在現代網頁應用程序中角色的理解。
您將獲得使用所需工具編寫端到端全棧網頁應用程序的實踐經驗,從設置 Bun 環境開始進行後端開發。本書還探討了伺服器端功能,如身份驗證、路由和與 PostgreSQL 的數據庫集成。書籍的第二部分專注於 OpenAI API 的集成,演示 GPT API 在不同用例中的使用。最後一部分涵蓋使用 Svelte 的前端開發,指導您進行 UI 設計、狀態管理和性能優化。每一章都有實際案例和與其他技術的比較,為您提供全面的全棧開發理解。
在本書結束時,您將學會如何使用 TypeScript 5 構建現代網頁應用程序,並自信地應對全棧開發挑戰。
您將學到的內容:
- 通過有效實施前端和後端功能來開發聊天應用程序
- 使用 PostgreSQL 構建強大的後端
- 高效編寫單元測試,以實現更乾淨和更可靠的應用程序
- 理解全棧應用程序架構,以提高可擴展性和可維護性
- 使用 Svelte 創建動態和響應式的 UI
- 在網頁應用程序中使用調試、測試和日誌工具,以快速檢測和最小化錯誤
本書適合對象:
本書適合具有 JavaScript 和網頁開發基礎知識的初級至中級軟體工程師,他們對最前沿的技術充滿熱情,並希望擴展對端到端全棧應用程序構建的理解。熟悉前端和後端開發的基本概念將幫助您充分利用本書。
目錄:
- TypeScript 基礎
- TypeScript 深入探討 - 類型、泛型、類和介面
- 使用 Bun 和 Hono 配置後端環境
- 使用 Bun、Hono 和 TypeScript 構建後端基礎設施
- 提高可靠性 - 測試和驗證
- 高級後端開發 - 安全性、限流、緩存和日誌
- PostgreSQL 基礎、存儲和設置
- 使用庫與 PostgreSQL 互動
- 使用 Prisma ORM 與 PostgreSQL 互動
- 使用 TypeScript 和 Hono 集成外部 API 的基本概念
- 為後端設置和配置 OpenAI API
- 前端開發的 Svelte 介紹
- 設置 Svelte 專案
- Svelte 聊天應用程序開發
- 高級 Svelte 技巧