万本电子书0元读

万本电子书0元读

顶部广告

MongoDB, Express, Angular, and Node.js Fundamentals电子书

售       价:¥

6人正在读 | 0人评论 9.8

作       者:Paul Oluyege

出  版  社:Packt Publishing

出版时间:2019-03-07

字       数:873.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build fast, robust, and maintainable modern full-stack web applications using MongoDB, Express, Angular, and Node.js. Key Features * Build highly scalable, asynchronous, and event-driven APIs * Develop a user authentication system with MEAN * Build a full-fledged application using the MEAN stack Book Description MongoDB, Express, Angular and Node.js Fundamentals is a practical guide to the tried-and-true production-ready MEAN stack, with tips and best practices. The book begins by demystifying the MEAN architecture. You’ll take a look at the features of the JavaScript libraries, technologies, and frameworks that make up a MEAN stack. With this book, you'll not only learn how to develop highly scalable, asynchronous, and event-driven APIs quickly with Express and Node.js, but you'll also be able put your full-stack skills to use by building two full-fledged MEAN applications from scratch. You’ll understand how to build a blogging application using the MEAN stack and get to grips with user authentication using MEAN. As you progress through the chapters, you’ll explore some old and new features of Angular, such as pipes, reactive forms, modules and optimizing apps, animations and unit testing, and much more. By the end of the book, you’ll get ready to take control of the MEAN stack and transform into a full-stack JavaScript developer, developing efficient web applications using Javascript technologies. What you will learn * Understand the MEAN architecture * Create RESTful APIs to complete CRUD tasks * Build a blogging application with basic features * Describe best practices to secure node applications * Implement authentication and authorization * Creating simple animations using Angular * Perform unit testing on Angular applications Who this book is for If you are a beginner or intermediate frontend developer who wants to become full-stack JavaScript developer, this book is ideal for you. You'll need some prior exposure to MongoDB as we skim over its basics before getting straight to work.
目录展开

Preface

About the Book

About the Author

Objectives

Audience

Approach

Hardware Requirements

Software Requirements

Installation and Setup

Additional Resources

Conventions

Chapter 1

Introduction to the MEAN Stack

Introduction

MEAN Architecture Demystification

MEAN Architecture

Express.js

Angular

Node.js

Getting Started with Node

Exercise 1: Creating Our First Node Program

Activity 1: Creating an HTTP Server for a Blogging Application

Understanding Callbacks, Event Loops, and EventEmitters in Node

Callback

Event Loops

EventEmitter

EventEmitter Implementation

The AddListener Method

Trigger Events

Removing Listeners

Some Other Features of EventEmmitter

Understanding Buffers, Streams, and the Filesystem in Node

Buffer

Exercise 2: Creating, Reading, and Writing to a Buffer

Uninitialized Buffers

Some Other Buffer Methods

Streams

Reading Data From Streams

Writing to Streams

Some Other Stream Methods

Filesystems

Some Other Methods in the Filesystems Module

Exercise 3: Reading and Writing Data Using Filesystem Operations

Activity 2: Streaming Data to a File

Summary

Chapter 2

Developing RESTful APIs to Perform CRUD Operations

Introduction

Getting Started with RESTful APIs

Node RESTful APIs Design Practice

Getting Started with MongoDB Atlas

Clusters

Exercise 4: Creating a Free Tier Cluster on MongoDB Atlas

Native MongoDB Driver and Mongoose (Object Document Mapper)

Using the Native MongoDB Driver

Using Mongoose

Exercise 5: Connecting the Node Application with the MongoDB Native Driver

Exercise 6: Connecting the Node Application with a Third-Party Driver (Mongoose)

Creating and Defining a Schema with Mongoose

Creating Models in Mongoose

Exercise 7: Creating a Database Schema and a Data Model using Mongoose

Activity 3: Connecting the Node Application with MongoDB Atlas

Getting Started with Express

Routing in Express

Exercise 8: Creating a Route and Exporting the Router Object

Activity 4: Creating Controller for the API

Middleware in Express

Error Handling in Express

View Template Engine

Exercise 9: Using the Pug (Jade) Template Engine and Implementing Error Handling in the Node Application with Express

Activity 5: Testing a Fully Functional RESTful API

Summary

Chapter 3

Beginning Frontend Development with Angular CLI

Introduction

Getting Started with Angular CLI

Installing Angular CLI

Exercise 10: Creating and Running a New Application on the Angular CLI

Project File Review

Using Components, Directives, Services, and Making HTTP Requests in Angular

Angular Components

Exercise 11: Creating Angular Components

Directives

Exercise 12: Implementing a Structural Directive

Exercise 13: Implementing an Attribute Directive

Data Binding in Angular

Services

Exercise 14: Creating Angular Services Manually

HTTP Requests using Angular's HttpClient

Working with JSON Data

Type Checking Responses

Error Handling

Activity 6: Designing the Frontend and Components for the Blogging Application

Activity 7: Writing Services and Making HTTP Request Calls to an API

Understanding Angular Forms and Routing

Angular Forms

Template-Driven Form

Exercise 15: Creating a Form using the Angular Template-Driven Method

Tracking Control State and Validity

Template Reference Variable

Reactive/Model-Driven Forms

Exercise 16: Creating a Simple Form Application using the Reactive/Model-Driven Method

Validating Model-Driven Forms

Routing in Angular

Getting Started with the Router

Router Outlets, Links, States, and Events

Router outlet

Router State

Router Events

Activity 8: Creating a Form Application using the Reactive/Model-Driven Method

Activity 9: Creating and Validating Different Forms using the Template and Reactive-Driven Method

Activity 10: Implementing a Router for the Blogging Application

Summary

Chapter 4

The MEAN Stack Security

Introduction

Node Security and Best Practices

Securing your Node applications

Node Application Authentication with JWTs

The Structure of a JWT

How JWTs Work

Exercise 17: Creating a Token-Based User Authentication System for a Node Application

Activity 11: Securing the RESTful API

Node Application Authentication with Passport

Getting Started with Passport

Passport Features

Passport Authentication Strategy

Authenticating Requests with Passport

Exercise 18: Creating a User Authenticating System in a Node Application Using the Passport Local Strategy

Implementing Facebook and Twitter Strategies

Creating Routes and Granting Permissions

Exercise 19: Creating a User Authenticating System for Node Application Using the Facebook Strategy

Activity 12: Creating a Login Page to Allow Authentication with Twitter Using Passport Strategies

Summary

Chapter 5

Angular Declarables, Bootstrapping, and Modularity

Introduction

Using Inbuilt Pipes, Custom Pipes, Custom Directives, and Observables

Angular Pipes

Inbuilt Pipes

Custom Pipes

Custom Directive

Exercise 20: Creating a Custom Structure Directive that Functions as an Inbuilt *nglf

Exercise 21: Creating a Custom Attribute Directive that Underlines Text by Listening to the Mouse Hover Effect

Observables

Creating, Defining, and Subscribing to Observables

The RxJS Library and Observables in Angular

Activity 13: Communicating Between Two Components Using Observable

Angular Bootstrapping and Modularity

Bootstrapping an Angular Application

Angular Modularity

JavaScript Modules and NgModules

NgModules

Feature Module

Entry Components

Service Provider Scope

Limiting Provider Scope with Components and the Lazy-Loading Module

Exercise 22: Creating a Shared Module for a Custom Attribute Directive

Exercise 23: Creating a Lazy-Loaded Module

Activity 14: Creating a Lazy-Loaded Application

Summary

Chapter 6

Testing and Optimizing Angular Applications

Introduction

Angular Animations and Latest Angular Features

Getting Started with the Animation Module

Animating an Element

Animating Route Transitions

Exercise 24: Creating an Animated Route Transition Between Two Pages

Activity 15: Animate the Route Transition Between the Blog Post Page and the View Post Page of the Blogging Application

Other Angular Features

Storing and Defining Constants in Angular

Angular Authentication Guard

Optimizing Angular Applications

Measuring Load Time Performance

Exercise 25: Web Application Performance Analysis Using PageSpeed

Optimizing Angular Application Load Time Performance

Optimizing Angular Application Runtime Performance

Exercise 26: Checking the Change Detection Cycle of an Angular Application

Testing Angular Applications

Getting Started with Unit Testing

Unit Testing a Service

Getting Started with End-to-End (E2E) Testing with Protractor

Interacting with Elements

Exercise 27: Performing an E2E Test for a Default Angular CLI Application to Find an Element using By.CSS

Activity 17: Perform Unit Testing on the App Root Component and Blog-Post Component

Summary

Appendix

Chapter 1: Introduction to the MEAN Stack

Activity 1: Creating an HTTP Server for a Blogging Application

Activity 2: Streaming Data to a File

Chapter 2: Developing RESTful APIs to Perform CRUD Operations

Activity 3: Connecting the Node application with MongoDB Atlas

Activity 4: Creating Controllers for API

Activity 5: Creating the API Express Route and Testing a Fully Functional RESTful API

Chapter 3: Beginning Frontend Development with Angular CLI

Activity 6: Designing the Frontend and Components for the Blogging Application

Activity 7: Writing Services and Making HTTP Request Calls to an API

Activity 8: Creating a Form Application Using the Reactive/Model-Driven Method

Activity 9: Creating and Validating Different Forms Using the Template and Reactive-Driven Method

Activity 10: Implementing a Router for the Blogging Application

Chapter 4: The MEAN Stack Security

Activity 11: Securing the RESTful API

Activity 12: Creating a Login Page to Allow Authentication with Twitter Using Passport Strategies

Chapter 5: Angular Declarables, Bootstrapping, and Modularity

Activity 13: Communicating Between Two Components Using Observable

Activity 14: Creating a Lazy Loaded Application

Chapter 6: Testing and Optimizing Angular Applications

Activity 15: Animating the Route Transition Between the Blog Post Page and the View Post Page of the Blogging Application

Activity 16: Performing Unit Testing on the App Root Component and Blog-Post Component

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部