Hands-On Full-Stack Web Development with GraphQL and React: Build scalable full-stack applications while learning to solve complex problems with GraphQL
暫譯: 實作全端網頁開發:使用 GraphQL 和 React 建立可擴展的全端應用程式,並學習解決複雜問題

Sebastian Grebe

  • 出版商: Packt Publishing
  • 出版日期: 2019-01-31
  • 定價: $1,530
  • 售價: 6.0$918
  • 語言: 英文
  • 頁數: 468
  • 裝訂: Paperback
  • ISBN: 1789134528
  • ISBN-13: 9781789134520
  • 相關分類: Web APIReactJVM 語言
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Unearth the power of GraphQL, React, Apollo, Node, and Express to build a scalable, production ready application

Key Features

  • Build full stack applications with modern APIs using GraphQL and Apollo
  • Integrate Apollo into React and build frontend components using GraphQL
  • Implement a self-updating notification pop-up with a unique GraphQL feature called Subscriptions

Book Description

React, one of the most widely used JavaScript frameworks, allows developers to build fast and scalable front end applications for any use case. GraphQL is the modern way of querying an API. It represents an alternative to REST and is the next evolution in web development. Combining these two revolutionary technologies will give you a future-proof and scalable stack you can start building your business around.

This book will guide you in implementing applications by using React, Apollo, Node.js and SQL. We'll focus on solving complex problems with GraphQL, such as abstracting multi-table database architectures and handling image uploads. Our client, and server will be powered by Apollo. Finally we will go ahead and build a complete Graphbook. While building the app, we'll cover the tricky parts of connecting React to the back end, and maintaining and synchronizing state. We'll learn all about querying data and authenticating users. We'll write test cases to verify the front end and back end functionality for our application and cover deployment. By the end of the book, you will be proficient in using GraphQL and React for your full-stack development requirements.

What you will learn

  • Resolve data from multi-table database and system architectures
  • Build a GraphQL API by implementing models and schemas with Apollo and Sequelize
  • Set up an Apollo Client and build front end components using React
  • Use Mocha to test your full-stack application
  • Write complex React components and share data across them
  • Deploy your application using Docker

Who this book is for

The book is for web developers who want to enhance their skills and build complete full stack applications using industry standards. Familiarity with JavaScript, React, and GraphQL is expected to get the most from this book.

Table of Contents

  1. Preparing Your Development Environment
  2. Setting up GraphQL with Express.js
  3. Connecting to The Database
  4. Integrating React into the Backend with Apollo
  5. Reusable React Components
  6. Authentication with Apollo and React
  7. Handling Image Uploads
  8. Routing in React
  9. Implementing Server-Side Rendering
  10. Real-Time Subscriptions
  11. Writing Tests
  12. Optimizing GraphQL with Apollo Engine
  13. Continuous Deployment with CircleCI and Heroku

商品描述(中文翻譯)

**發掘 GraphQL、React、Apollo、Node 和 Express 的力量,以構建可擴展的生產就緒應用程式**

#### 主要特點

- 使用 GraphQL 和 Apollo 構建全棧應用程式,搭配現代 API
- 將 Apollo 整合到 React 中,並使用 GraphQL 構建前端元件
- 實現一個自我更新的通知彈出窗口,利用 GraphQL 的一個獨特功能:訂閱(Subscriptions)

#### 書籍描述

React 是最廣泛使用的 JavaScript 框架之一,允許開發人員為任何用例構建快速且可擴展的前端應用程式。GraphQL 是查詢 API 的現代方式,代表了 REST 的替代方案,是網頁開發的下一次進化。結合這兩種革命性技術,將為您提供一個未來可持續且可擴展的技術棧,您可以開始圍繞它構建您的業務。

本書將指導您使用 React、Apollo、Node.js 和 SQL 實現應用程式。我們將專注於使用 GraphQL 解決複雜問題,例如抽象多表數據庫架構和處理圖像上傳。我們的客戶端和伺服器將由 Apollo 提供支持。最後,我們將構建一個完整的 Graphbook。在構建應用程式的過程中,我們將涵蓋將 React 連接到後端的棘手部分,以及維護和同步狀態。我們將學習如何查詢數據和驗證用戶。我們將編寫測試案例以驗證我們應用程式的前端和後端功能,並涵蓋部署。到本書結束時,您將熟練掌握使用 GraphQL 和 React 進行全棧開發的需求。

#### 您將學到什麼

- 解決來自多表數據庫和系統架構的數據
- 通過實現模型和架構來構建 GraphQL API,使用 Apollo 和 Sequelize
- 設置 Apollo 客戶端並使用 React 構建前端元件
- 使用 Mocha 測試您的全棧應用程式
- 編寫複雜的 React 元件並在它們之間共享數據
- 使用 Docker 部署您的應用程式

#### 本書適合誰

本書適合希望提升技能並使用行業標準構建完整全棧應用程式的網頁開發人員。熟悉 JavaScript、React 和 GraphQL 將有助於您從本書中獲益最多。

#### 目錄

1. 準備您的開發環境
2. 使用 Express.js 設置 GraphQL
3. 連接到數據庫
4. 將 React 整合到後端與 Apollo
5. 可重用的 React 元件
6. 使用 Apollo 和 React 進行身份驗證
7. 處理圖像上傳
8. 在 React 中進行路由
9. 實現伺服器端渲染
10. 實時訂閱
11. 編寫測試
12. 使用 Apollo Engine 優化 GraphQL
13. 使用 CircleCI 和 Heroku 進行持續部署