Hands-on Nuxt.js Web Development: Build universal and static-generated Vue.js applications using Nuxt.js
內容描述
Learn Nuxt.js for building server-side rendered, static-generated, and production-ready Vue.js web applications with the help of practical examples
Key Features
Explore techniques for authentication, testing, and deployment to build your first complete Nuxt.js web app
Write cleaner, maintainable, and scalable isomorphic JavaScript web applications
Transform your Vue.js application into universal and static-generated web apps
Book Description
Nuxt.js is a progressive web framework built on top of Vue.js for server-side rendering (SSR). With Nuxt.js and Vue.js, building universal and static-generated applications from scratch is now easier than ever before.
This book starts with an introduction to Nuxt.js and its constituents as a universal SSR framework. You'll learn the fundamentals of Nuxt.js and find out how you can integrate it with the latest version of Vue.js. You'll then explore the Nuxt.js directory structure and set up your first Nuxt.js project using pages, views, routing, and Vue components. With the help of practical examples, you'll learn how to connect your Nuxt.js application with the backend API by exploring your Nuxt.js application's configuration, plugins, modules, middleware, and the Vuex store. The book shows you how you can turn your Nuxt.js application into a universal or static-generated application by working with REST and GraphQL APIs over HTTP requests. Finally, you'll get to grips with security techniques using authorization, package your Nuxt.js application for testing, and deploy it to production.
By the end of this web development book, you'll have developed a solid understanding of using Nuxt.js for your projects and be able to build secure, end-to-end tested, and scalable web applications with SSR, data handling, and SEO capabilities.
What you will learn
Integrate Nuxt.js with the latest version of Vue.js
Extend your Vue.js applications using Nuxt.js pages, components, routing, middleware, plugins, and modules
Create a basic real-time web application using Nuxt.js, Node.js, Koa.js and RethinkDB
Develop universal and static-generated web applications with Nuxt.js, headless CMS and GraphQL
Build Node.js and PHP APIs from scratch with Koa.js, PSRs, GraphQL, MongoDB and MySQL
Secure your Nuxt.js applications with the JWT authentication
Discover best practices for testing and deploying your Nuxt.js applications
Who this book is for
The book is for any JavaScript or full-stack developer who wants to build server-side rendered Vue.js apps. A basic understanding of the Vue.js framework will assist with understanding key concepts covered in the book.
目錄大綱
Introducing Nuxt
Getting started with Nuxt
Adding UI Frameworks
Adding Views, Routes, and Transitions
Adding Vue Components
Writing Plugins and Modules
Adding Vue Forms
Adding a Server-side Framework
Adding a Server-side Database
Adding a Vuex Store
Writing Route Middlewares and Server Middlewares
Creating User Logins and API Authentication
Writing End-to-End Tests
Using Linters, Formatters, and Deployment Commands
Creating an SPA with Nuxt
Creating a Framework-Agnostic PHP API for Nuxt
Creating a Real-Time App with Nuxt
Creating a Nuxt App with a CMS and GraphQL
作者介紹
Lau Tiam Kok, aka Lau Thiam Kok, is a cross-disciplinary full stack web developer/designer and analyst. He was born in Penang, Malaysia. His studies include a Bachelor of Applied Arts degree at University Malaysia Sarawak (1996 - 1999), and an MSc in Digital Futures at the Institute of Digital Art and Technology, University of Plymouth, UK (2002 - 2003). Lau has freelanced for more than 10 years for various individuals, institutions, and companies. He works with designers or independently, from designing layouts to coding the frontend and server-side programs to produce responsive websites. He also works collaboratively on air-quality monitoring projects for Citizen Sense (based in the United Kingdom), which uses R, openair, Shiny, MongoDB, RethinkDB, Express.js, Koa.js, Socket.IO and Nuxt.js for data analysis web apps and IoT data platforms.