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.
Publisher resources
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
Full-Stack Web Development with Jakarta EE and Vue.js: Your One-Stop Guide to Building Modern Full-Stack Applications with Jakarta EE and Vue.js
Harness the power of Jakarta EE to build sturdy back ends while applying Vue.js on the …
book
Hacking Web Performance
In spite of the many performance optimization techniques in use today, web developers face significant loading …
book
Skills of a Successful Software Engineer
Skills to grow from a solo coder into a productive member of a software development team, …
book
CSS Master, 3rd Edition
CSS has grown from a language for formatting documents into a robust languagefor designing web applications. …