Book description
Take your Vue.js knowledge to the next level by understanding full-stack development concepts and exploring modern web technologies such as AWS Amplify, GraphQL, and Quasar Framework
Key Features
- Build a fully functional Vue.js web app and learn how it integrates with GraphQL
- Transform your chat application into a Progressive Web Application (PWA) for web deployment
- Discover practical recipes, exploring the capabilities of the GraphQL API for full-stack development using Quasar Framework
Book Description
Since its release by Facebook in 2012, GraphQL has taken the internet by storm. Huge companies such as Airbnb and Audi have started to adopt it, while small to medium-sized companies are now recognizing the potential of this query-based API.
GraphQL may seem strange at first, but as you start to read about and experience more of it, you won't want to use REST APIs anymore.
With the recipes in this book, you will learn how to build a complete real-time chat app from scratch. Starting by creating an AWS Amplify environment, you will delve into developing your first GraphQL Schema. You will then learn how to add the AppSync GraphQL client and create your first GraphQL mutation. The book also helps you to discover the simplicity and data fetching capabilities of GraphQL that make it easy for front-end developers to communicate with the server. You will later understand how to use Quasar Framework to create application components and layouts. Finally, you will find out how to create Vuex modules in your application to manage the app state, fetch data using the GraphQL client, and deploy your application to the web.
By the end of this book, you'll be well versed in proof-of-concept full-stack applications that explore the power of GraphQL with AWS Amplify, and you'll be able to use Quasar Framework to create your Vue applications.
What you will learn
- Set up your Vue.js projects with Vue CLI and explore the power of Vue components
- Discover steps to create functional components in Vue.js for faster rendering
- Become familiar with AWS Amplify and learn how to set up your environment
- Understand how to create your first GraphQL schema
- Use Quasar Framework to create simple and effective interfaces
- Discover effective techniques to create queries for interacting with data
- Explore Vuex for adding state management capabilities to your app
- Discover techniques to deploy your applications effectively to the web
Who this book is for
This book is for intermediate-level Vue.js developers who want to take their first step toward full-stack development. Prior knowledge of Vue.js and JavaScript is required before getting started with this book.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
-
Data Binding, Events, and Computed Properties
- Technical requirements
- Creating your first project with the Vue CLI
- Creating the hello world component
- Creating an input form with two-way data binding
- Adding an event listener to an element
- Removing the v-model directive from the input
- Creating a dynamic to-do list
- Creating computed properties and understanding how they work
- Displaying cleaner data and text with custom filters
- Creating filters and sorters for a list
- Creating conditional filters to sort list data
- Adding custom styles and transitions
- Using vue-devtools to debug your application
-
Components, Mixins, and Functional Components
- Technical requirements
- Creating a visual template component
- Using slots and named slots to place data inside your components
- Passing data to your component and validating the data
- Creating functional components
- Accessing your children component's data
- Creating a dynamically injected component
- Creating a dependency injection component
- Creating a component mixin
- Lazy loading your components
- Setting Up Our Chat App - AWS Amplify Environment and GraphQL
-
Creating Custom Application Components and Layouts
- Technical requirements
- Creating custom inputs for the application
- Creating the application layouts
-
Creating the User Vuex Module, Pages, and Routes
- Technical requirements
- Creating the User Vuex module in your application
- Creating User pages and routes for your application
-
Creating Chat and Message Vuex, Pages, and Routes
- Technical requirements
- Creating GraphQL queries and fragments
- Creating the Chat Vuex module on your application
- Creating the Contacts page of your application
- Creating the Messages page of your application
- Transforming Your App into a PWA and Deploying to the Web
- Other Books You May Enjoy
Product information
- Title: Building Vue.js Applications with GraphQL
- Author(s):
- Release date: January 2021
- Publisher(s): Packt Publishing
- ISBN: 9781800565074
You might also like
book
Vue.js in Action
Web pages are rich with data and graphics, and it's challenging to maintain a smooth and …
book
Full Stack Development with Angular and GraphQL
Design and develop full-stack and cross-platform Angular applications using the latest web tooling, development techniques, and …
book
Building Progressive Web Applications with Vue.js: Reliable, Fast, and Engaging Apps with Vue.js
Obtain all the necessary tools for developing a progressive web application (PWA) with Vue.js, a modern …
book
Front-End Development Projects with Vue.js
Get to grips with the core fundamentals of Vue.js and learn to build reliable component-based applications …