Book description
Build modern, fast, and progressive web applications using modern features of PHP 7 and TypeScript
Key Features
- Explore the latest features of Angular and Laravel to build applications that are powerful, consistent, and maintainable
- Develop modern user interfaces with a reusable component-based architecture using Angular 6 and Bootstrap 4
- Learn how to build secure backend APIs with Laravel
Book Description
Angular, considered as one of the most popular and powerful frontend frameworks, has undergone a major overhaul to embrace emerging web technologies so that developers can build cutting-edge web applications.
This book gives you practical knowledge of building modern full-stack web apps from scratch using Angular with a Laravel Restful back end.
The book begins with a thorough introduction to Laravel and Angular and its core concepts like custom errors messages, components, routers, and Angular-cli, with each concept being explained first, and then put into practice in the case-study project.
With the basics covered, you will learn how sophisticated UI features can be added using NgBootstrao and a component-based architecture. You will learn to extend and customize variables from Bootstrap CSS framework.
You will learn how to create secure web application with Angular and Laravel using token based authentication. Finally, you will learn all about progressive web applications and build and deploy a complete fullstack application using Docker and Docker-compose.
By the end of this book, you'll gain a solid understanding of Angular 6 and how it interacts with a Laravel 5.x backend
What you will learn
- Explore the core features of Angular 6 to create sophisticated user interfaces
- Use Laravel 5 to its full extent to create a versatile backend layer based on RESTful APIs
- Configure a web application in order to accept user-defined data and persist it into the database using server-side APIs
- Build an off-line-first application using service-worker and manifest file
- Deal with token based authentication on single page application (SPA).
- Secure your application against threats and vulnerabilities in a time efficient way
- Deploy using Docker and Docker-compose
Who this book is for
This book targets developers who are new to Angular, Laravel, or both, and are seeking a practical, best-practice approach to development with these technologies. They must have some knowledge of HTML, CSS and JavaScript. Familiarity of PHP is assumed to get the most from this book.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- PacktPub.com
- Contributors
- Preface
- Understanding the Core Concepts of Laravel 5
- The Benefits of TypeScript
-
Understanding the Core Concepts of Angular 6
- Angular 6 – smaller, faster, and easier
- Angular and the component method for developing modern web applications
- Installing the tools – Git, the Angular CLI, and VS Code plugins
- Creating a simple Angular application
- Simple deployment
- Summary
- Building the Baseline Backend Application
- Creating a RESTful API Using Laravel - Part 1
- Creating a RESTful API Using Laravel - Part 2
- Progressive Web Applications with the Angular CLI
-
Dealing with the Angular Router and Components
- Preparing the baseline code
- Adding components to our application
- Dealing with Angular routes
- Configuring child routes for details pages
-
Building frontend views
- Creating the navigation component
- Creating the home view and template
- Creating the bikes router-outlet
- Creating the bike-list view and template
- Creating the bike-detail view and template
- Creating the builders router-outlet
- Creating the builder-list view and template
- Creating the builder-detail view and template
- Creating the login view and template
- Creating the register view and template
- Testing routes and views 
- Summary
-
Creating Services and User Authentication
- Preparing the baseline code
- Dealing with models and classes
- Using the new HttpClient to deal with XHR requests
- Dealing with the HttpErrorHandler service
- How to use authorization headers
- How to protect application routes with route guards
- Summary
-
Frontend Views with Bootstrap 4 and NgBootstrap
- Preparing the baseline code
- Installing the Bootstrap CSS framework
-
Writing Angular templates with Bootstrap
- Adding template bindings to the navigation component
- Adding template bindings to the login page
- Adding template bindings to the register page
- Adding template bindings to the bike-detail page
- Adding template bindings to the bike-list page
- Adding template bindings to the builder-detail page
- Adding template bindings to the builder-list page
- Setting up CORS on a Laravel backend
- Connecting Angular services with application components
- Dealing with Angular pipes, forms, and validation
- Summary
-
Building and Deploying Angular Tests
- Preparing the baseline code
- Setting application linters
- Understanding Angular tests
-
Writing unit and e2e tests
-
Fixing unit tests
- Fixing authGuard tests
- Fixing authService tests
- Fixing login tests
- Fixing register tests
- Fixing bike service tests
- Fixing bike-detail tests
- Fixing bike-list tests
- Fixing bike tests
- Fixing builders service tests
- Fixing builder-detail tests
- Fixing builder-list components
- Fixing builders tests
- Fixing home tests
- Fixing app tests
- Fixing app interceptor tests
- Adding unit tests
- Fixing e2e tests
-
Fixing unit tests
- Application deployment
- Summary
- Other Books You May Enjoy
Product information
- Title: Hands-On Full Stack Web Development with Angular 6 and Laravel 5
- Author(s):
- Release date: July 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788833912
You might also like
book
Angular 6 for Enterprise-Ready Web Applications
A hands-on guide with a minimalist and flexible approach that enables quick learning and rapid delivery …
video
Advanced Laravel and Vue.js: Build a YouTube Clone
If you're looking for a course that will help you get to grips with the advanced …
book
Beginning Laravel: Build Websites with Laravel 5.8
Develop cutting-edge websites and applications using the new features of Laravel 5.8. This book starts with …
book
Laravel: Up and Running
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid …