Book description
Design and develop full-stack and cross-platform Angular applications using the latest web tooling, development techniques, and modern app architecture
Key Features
- Implement scalability and maintainability to your full stack apps using Angular modules and components
- Get the complete source code of the example social network app built using GraphQL and Apollo
- Manage your Angular applications state using Apollo client for a seamless user experience
Book Description
GraphQL is an alternative to traditional REST technology for querying Web APIs. Together with Angular and TypeScript, it provides a tech stack option for building future-proof web applications that are robust and maintainable at any scale.
This book leverages the potential of cutting-edge technologies like GraphQL and Apollo and helps Angular developers add it to their stack. Starting with introducing full-stack development, you will learn to create a monorepo project with Lerna and NPM Workspaces. You will then learn to configure Node.js-based backend using GraphQL, Express, and Apollo Server. The book will demonstrate how to build professional-looking UIs with Angular Material. It will then show you how to create Web APIs for your frontend with GraphQL. All this in a step-by-step manner. The book covers advanced topics such as local state management, reactive variables, and generating TypeScript types using the GraphQL scheme to develop a scalable codebase.
By the end of this book, you'll have the skills you need to be able to build your full-stack application.
What you will learn
- Create a monorepo project with Lerna and NPM workspaces
- Add realtime support with GraphQL subscriptions
- Build a frontend with a modular architecture and Material Design UI components to consume the GraphQL API
- Use GraphQL Code Generator to generate types and code for a type-safe and scalable code base
- Create Angular modules and smart and dumb components and share data between them
- Use Apollo Client features such as client-side queries and reactive variables for local state management
Who this book is for
The book is aimed at Angular developers who wish to learn about GraphQL for taking their frontend knowledge in full stack web development. The book assumes intermediate knowledge of Angular, however, full stack development is not required.
Table of contents
- Full Stack Development with Angular and GraphQL
- Contributors
- About the author
- About the reviewer
- Preface
- Part 1: Setting Up the Development Environment, GraphQL Server, and Database
-
Chapter 1: App Architecture and Development Environment
- Technical requirements
-
The architecture and technologies
- Full-stack architecture
- The development technologies
- Running JavaScript on the server with Node.js
- Installing packages with npm
- Running a web server with Express.js
- GraphQL
- Integrating the frontend and backend with Apollo
- Saving data with TypeORM and MySQL
- Building the frontend with TypeScript and Angular
- Installing MySQL
- Installing and configuring Node.js
- Summary
- Chapter 2: Setting Up GraphQL with Node.js, Express.js, and Apollo
- Chapter 3: Connecting the Database with TypeORM
- Chapter 4: Implementing Authentication and Image Uploads with Apollo Server
- Chapter 5: Adding Realtime Support with Apollo Server
- Part 2: Building the Angular Frontend with Realtime Support
-
Chapter 6: Angular Application Architecture and Routing
- Technical requirements
- Installing the Angular CLI
- Initializing the Angular project
- Understanding the application architecture
- Understanding services and dependency injection
- Creating modules, services, and components
- Understanding Angular routing
- Understanding and adding routes
- Adding navigation
- Debugging Angular applications
- Adding Angular Material
- Summary
-
Chapter 7: Adding User Search Functionality
- Technical requirements
- Introducing and installing Apollo Client
- Importing Angular Material components
-
Signing up and logging users in
- Defining GraphQL documents
- Defining types for user authentication
- Defining Apollo services
- Implementing the user authentication service
- Building and styling the signup UI
- Building and styling the login UI (assignment)
- Implementing the header component
- Implementing the footer and page not found components
- Implementing the user search dialog component
- Summary
- Chapter 8: Guarding Routes and Testing Authentication
- Chapter 9: Uploading Images and Adding Posts
- Chapter 10: Fetching Posts and Adding Comments and Likes
- Part 3: Adding Realtime Support
- Chapter 11: Implementing GraphQL Subscriptions
- Other Books You May Enjoy
Product information
- Title: Full Stack Development with Angular and GraphQL
- Author(s):
- Release date: March 2022
- Publisher(s): Packt Publishing
- ISBN: 9781800202467
You might also like
book
Building Large-Scale Web Applications with Angular
A definitive guide on frontend development with Angular from design to deployment Key Features Develop web …
book
Building Vue.js Applications with GraphQL
Take your Vue.js knowledge to the next level by understanding full-stack development concepts and exploring modern …
book
Accelerating Angular Development with Ivy
Get a comprehensive introduction to the major Angular framework rewrite known as Angular Ivy Key Features …
book
Angular Development with TypeScript, Second Edition
Angular Development with TypeScript, Second Edition is an intermediate-level tutorial that introduces Angular and TypeScript to …