Book Image

Hands-On Full Stack Web Development with Angular 6 and Laravel 5

By : Fernando Monteiro
Book Image

Hands-On Full Stack Web Development with Angular 6 and Laravel 5

By: Fernando Monteiro

Overview of this book

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
Table of Contents (13 chapters)

Setting application linters

All of us want a clean and consistent code base. Independent of the programming language adopted, it is very common to use linters for JavaScript and other languages. But, when we discuss CSS or SCSS/LESS, this practice is not very common; we rarely use a linter for our style sheets.

A linter is a tool that analyzes code and reports errors. We set the rules, and when a piece of code doesn't pass the rules defined in the linter's configuration, the linter reports an error. This feature is very useful when a team is growing and needs to keep the code base consistent.

If you don't have strict rules for coding style, code can become a mess very quickly. Even if you work alone, it is always a good practice to keep your code consistent.

In the following sections, you will learn how to apply a linter for SCSS and TypeScript files.

...