Book description
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.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Section 1: Your First Nuxt App
- Introducing Nuxt
-
Getting Started with Nuxt
- Technical requirements
- Installing Nuxt
- Understanding the directory structure
-
Understanding custom configuration
- The mode option
- The target option
- The head option
- The css option
- The plugins option
- The components option
- The buildModules option
- The modules option
- The build option
- The dev option
- The rootDir option
- The srcDir option
- The server option
- The env option
- The router option
- The dir option
- The loading option
- The pageTransition and layoutTransition options
- The generate option
- Understanding asset serving
- Summary
- Adding UI Frameworks
- Section 2: View, Routing, Components, Plugins, and Modules
- Adding Views, Routes, and Transitions
-
Adding Vue Components
- Understanding Vue components
- Creating single-file Vue components
- Registering global and local components
- Writing basic and global mixins
- Defining component names and using naming conventions
- Summary
- Writing Plugins and Modules
- Adding Vue Forms
- Section 3: Server-Side Development and Data Management
- Adding a Server-Side Framework
- Adding a Server-Side Database
- Adding a Vuex Store
- Section 4: Middleware and Security
- Writing Route Middlewares and Server Middlewares
- Creating User Logins and API Authentication
- Section 5: Testing and Deployment
- Writing End-to-End Tests
- Using Linters, Formatters, and Deployment Commands
- Section 6: The Further Fields
- 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
- Other Books You May Enjoy
Product information
- Title: Hands-on Nuxt.js Web Development
- Author(s):
- Release date: August 2020
- Publisher(s): Packt Publishing
- ISBN: 9781789952698
You might also like
book
Modern CSS: Master the Key Concepts of CSS for Modern Web Development
Come on a tour of “modern” CSS in 2020. This example-driven book demonstrates the concepts by …
book
Web Development with Node and Express, 2nd Edition
Build dynamic web applications with Express, a key component of the Node/JavaScript development stack. In this …
book
Node.js Web Development
Build scalable web applications using Node.js, Express.js, and the latest ECMAScript techniques, along with deploying applications …
video
HTML CSS and JavaScript for Beginners - A Web Design Course
This course starts from scratch, teaches you how to create websites, and covers everything from the …