Next.js Quick Start Guide: Server-side rendering done right

Kirill Konshin

  • 出版商: Packt Publishing
  • 出版日期: 2018-07-25
  • 售價: $1,360
  • 貴賓價: 9.5$1,292
  • 語言: 英文
  • 頁數: 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 一起提取資料和接收推送通知
- 設計和實現核心模組,如日誌記錄和身份驗證,以及更複雜的存取控制和業務規則管理解決方案
- 撰寫測試並使用 Travis、GitLab 等在線 CI 工具
- 為應用程式建立基於 Docker 的容器並將其部署到 Heroku 和 Now.sh 等在線服務

本書適合對於生成伺服器端渲染應用程式有興趣的 JavaScript 開發人員。

目錄:
1. 伺服器端渲染和 Next.js 簡介
2. Next.js 基礎知識
3. Next.js 配置
4. Next.js 資料流
5. 應用程式生命週期處理和業務邏輯
6. 持續整合
7. 容器