Next.js Quick Start Guide: Server-side rendering done right
暫譯: Next.js 快速入門指南:正確實現伺服器端渲染

Kirill Konshin

  • 出版商: Packt Publishing
  • 出版日期: 2018-07-25
  • 售價: $1,450
  • 貴賓價: 9.5$1,378
  • 語言: 英文
  • 頁數: 164
  • 裝訂: Paperback
  • ISBN: 1788993667
  • ISBN-13: 9781788993661
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

Create, build and deploy universal JavaScript applications using Next.js 6.0

Key Features

  • Work with the entire tool-chain for developing universal Javascript applications with Next.js
  • A straightforward guide to implementing server-side rendering
  • Use Next.js to build SEO-friendly and super fast websites

Book Description

Next.js is a powerful addition to the ever-growing and dynamic JavaScript world. Built on top of React, Webpack, and Babel, it is a minimalistic framework for server-rendered universal JavaScript applications. This book will show you the best practices for building sites using Next. js, enabling you to build SEO-friendly and superfast websites.

This book will guide you from building a simple single page app to a scalable and reliable client-server infrastructure. You will explore code sharing between client and server, universal modules, and server-side rendering.

The book will take you through the core Next.js concepts that everyone is talking about - hot reloading, code splitting, routing, server rendering, transpilation, CSS isolation, and more. You will learn ways of implementing them in order to create your own universal JavaScript application. You will walk through the building and deployment stages of your applications with the JSON API,customizing the confguration, error handling,data fetching, deploying to production, and authentication.

What you will learn

  • Explore the benefts of server-side rendering with Next.js
  • Create and link JavaScript modules together by understanding code splitting and bundling
  • Create website pages and wire them together through website navigation
  • Extend your application with additional Webpack loaders and features, as well as custom Babel plugins and presets
  • Use GraphQL and Apollo frameworks with Next.js to fetch data and receive push notifcations
  • Design and implement core modules, such as logging and authentication, and then more complex solutions for access control and business rule management
  • Write tests and use online CI tools such as Travis, GitLab, and more
  • Build a Docker-based container for your app and deploy it to online services such as Heroku and Now.sh

Who this book is for

This book is for JavaScript developers who want to learn how to generate server-rendered applications.

Table of Contents

  1. Introduction to Server Side Rendering and Next.js
  2. Next.js fundamentals
  3. Next.js Configuration
  4. Next.js Data Flow
  5. App lifecycle handlers & Business Logic
  6. Continuous Integration
  7. Containers

商品描述(中文翻譯)

**使用 Next.js 6.0 創建、構建和部署通用 JavaScript 應用程式**

#### 主要特點
- 使用 Next.js 開發通用 JavaScript 應用程式的完整工具鏈
- 實現伺服器端渲染的簡明指南
- 使用 Next.js 建立 SEO 友好且超快速的網站

#### 書籍描述
Next.js 是不斷增長且充滿活力的 JavaScript 世界中的一個強大補充。它建立在 React、Webpack 和 Babel 之上,是一個用於伺服器渲染的通用 JavaScript 應用程式的簡約框架。本書將向您展示使用 Next.js 建立網站的最佳實踐,使您能夠構建 SEO 友好且超快速的網站。

本書將指導您從構建簡單的單頁應用程式到可擴展且可靠的客戶端-伺服器基礎架構。您將探索客戶端和伺服器之間的代碼共享、通用模組和伺服器端渲染。

本書將帶您了解每個人都在談論的核心 Next.js 概念 - 熱重載、代碼分割、路由、伺服器渲染、轉譯、CSS 隔離等。您將學習如何實現這些概念,以創建自己的通用 JavaScript 應用程式。您將了解應用程式的構建和部署階段,包括 JSON API、自定義配置、錯誤處理、數據獲取、部署到生產環境和身份驗證。

#### 您將學到什麼
- 探索使用 Next.js 進行伺服器端渲染的好處
- 通過理解代碼分割和打包來創建和鏈接 JavaScript 模組
- 創建網站頁面並通過網站導航將其連接在一起
- 擴展您的應用程式,添加額外的 Webpack 加載器和功能,以及自定義 Babel 插件和預設
- 使用 GraphQL 和 Apollo 框架與 Next.js 獲取數據並接收推送通知
- 設計和實現核心模組,如日誌記錄和身份驗證,然後實現更複雜的訪問控制和業務規則管理解決方案
- 編寫測試並使用在線 CI 工具,如 Travis、GitLab 等
- 為您的應用程式構建基於 Docker 的容器,並將其部署到 Heroku 和 Now.sh 等在線服務

#### 本書適合誰
本書適合希望學習如何生成伺服器渲染應用程式的 JavaScript 開發人員。

#### 目錄
1. 伺服器端渲染和 Next.js 介紹
2. Next.js 基礎
3. Next.js 配置
4. Next.js 數據流
5. 應用程式生命週期處理程序與業務邏輯
6. 持續集成
7. 容器