万本电子书0元读

万本电子书0元读

顶部广告

MEAN Cookbook电子书

售       价:¥

22人正在读 | 0人评论 9.8

作       者:Nicholas McClay

出  版  社:Packt Publishing

出版时间:2017-09-28

字       数:53.4万

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

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Over 50 recipes to create full-stack high-performance web applications using pure JavaScript and the MEAN stack. About This Book ? Architect a fully functional stand-alone web application, including the web server, database, and front-end web application ? Improve the performance and maintainability of your MEAN stack application with tips for configuration and optimization ? Highlights MEAN Stack best practices when working with your application Who This Book Is For If you are a JavaScript developer who wants to create high-performing, modern web applications with the MEAN stack, this is the book for you. Web developers familiar with some parts of the MEAN stack will find this a comprehensive guide to fleshing out the other technologies and skills they need to build all JavaScript web applications. Developers interested in transitioning from other web application stacks to an all-JavaScript environment will find a wealth of information about how to work in a MEAN stack environment. To get the most from this book, you should have a general understanding of web servers and web applications. You are expected to have a basic understanding of running JavaScript, both in a web browser and outside it, using Node.js and the NPM package manager. What You Will Learn ? Bootstrap a new MEAN stack web application using Node.js and Express ? Build a single-page application (SPA) with Angular and Angular-CLI ? Improve browser performance by optimizing your web application resources using Webpack ? Model complex JSON object relationships in MongoDB using Mongoose ? Debug all the layers of a MEAN stack application, including working with source maps ? Build Restful APIs using Express.js and JSON Web Token (JWT) for user authentication ? Use automated testing to improve the reliability and quality of your MEAN stack application In Detail The MEAN Stack is a framework for web application development using JavaScript-based technologies; MongoDB, Express, Angular, and Node.js. If you want to expand your understanding of using JavaScript to produce a fully functional standalone web application, including the web server, user interface, and database, then this book can help guide you through that transition. This book begins by configuring the frontend of the MEAN stack web application using the Angular JavaScript framework. We then implement common user interface enhancements before moving on to configuring the server layer of our MEAN stack web application using Express for our backend APIs. You will learn to configure the database layer of your MEAN stack web application using MongoDB and the Mongoose framework, including modeling relationships between documents. You will explore advanced topics such as optimizing your web application using WebPack as well as the use of automated testing with the Mocha and Chai frameworks. By the end of the book, you should have acquired a level of proficiency that allows you to confidently build a full production-ready and scalable MEAN stack application. Style and Approach This book is a guide of MEAN Stack specific solutions to common web application problems and includes in-depth guides for each layer of the application stack. Readers looking to upgrade their MEAN Stack web application will find recipes within to help them transition.
目录展开

Title Page

Copyright

MEAN Cookbook

Credits

About the Author

Acknowledgement

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Working with Angular 4

Introduction

Upgrading to Angular 4 using NPM

Getting ready

How to do it...

How it works...

There’s more…

Taking advantage of optional dependencies

Peer dependency warnings after upgrade

Generating a new Angular project using Angular-CLI

Getting ready

How to do it...

How it works...

There's more...

Tips for resolving port collision

Configuring Angular-CLI project settings

How to do it...

Working with generators in Angular-CLI

How to do it...

How it works...

There's more...

Ejecting Angular-CLI from your project

Getting ready

How to do it...

How it works...

Generating new routes in Angular-CLI

Getting ready

How to do it...

How its works...

Defining a home page in your Angular routes

How to do it...

How it works...

There's more...

Handling 404 errors in an Angular project

How to do it...

How it works...

Creating nesting routes in Angular

Getting ready

How to do it...

How it works...

Creating sibling routes in Angular

How to do it...

How it works...

There's more...

Programmatic page redirection in Angular

How to do it...

How it works...

Route preloading with Angular modules

Getting ready

How to do it...

How it works...

Running tests in Angular-CLI

How to do it...

How it works...

Enhancing Your User Interface

Introduction

Configuring Sass in Angular

Getting ready

How to do it...

How it works...

There's more...

Working with Angular component styles

How to do it...

How it works...

Using Sass variables for style reusability

How to do it...

How it works...

There's more...

Using Sass nesting for better style specificity

Getting ready

How to do it...

How it works...

There's more...

Using Sass partials for style organization

Getting ready

How to do it...

How it works...

There's more...

Working with Bootstrap in Sass

How to do it...

How it works...

There's more...

Customizing Bootstrap for Angular

Getting ready

How to do it...

How it works...

There's more...

Using Bootstrap Responsive layouts

Getting ready

How to do it...

How it works...

There's more...

Working with Bootstrap components in Angular

Getting ready

How to do it...

How it works...

There's more...

Working with Font-Awesome icons in Angular

Getting ready

How to do it...

How it works...

There's more...

Internationalization with Angular i18n

Getting ready

How to do it...

How it works...

There's more...

Setting your language with Angular i18n

Getting ready

How to do it...

How it works...

There's more...

How to Localize dates in Angular

How to do it...

How it works...

There's more...

Working with Data

Introduction

Working with actions and events in Angular

Getting ready

How to do it...

How it works...

There's more...

Working with form input and models in Angular

Getting Ready

How to do it...

How it works...

There's more...

Validating data with Angular form properties

Getting Ready

How to do it...

How it works...

There's more...

Creating services for data in Angular

Getting ready

How to do it...

How it works...

There's more...

Using promises to create asynchronous services in Angular

Getting ready

How to do it...

How it works...

There's more...

Retrieving API data using HTTP services in Angular

Getting ready

How to do it...

How it works...

There's more...

Querying API sources using HTTP services in Angular

Getting ready

How to do it...

How it works...

There's more...

Creating Concurrent API requests in Angular

Getting ready

How to do it...

How it works...

Handling API errors and invalid responses in Angular

Getting ready

How to do it...

HTTP service optimization through client-side caching

Getting Ready

How to do it...

How it works...

Using Express Web Server

Introduction

Creating a new Express project with express-generator

Getting ready

How to do it...

How it works...

There's more...

Working with routes in Express

Getting ready

How to do it...

How it works...

There's more...

Serving an Angular web application with Express

Getting ready

How to do it...

How it works...

There's more...

Working with headers in Express

Getting ready

How to do it...

How it works...

There's more...

Working with cookies in Express

Getting ready

How to do it...

How it works...

There's more...

Creating Express middleware for routes

Getting ready

How to do it...

How it works...

There's more...

Logging traffic and activity with Morgan

Getting Ready

How to do it...

How it works...

There's more...

Running your Express web server with Forever

Getting ready

How to do it...

How it works...

There's more...

Securing your Express web server

Getting ready

How to do it...

How it works...

REST APIs and Authentication

Introduction

Building REST APIs with Express

Getting ready

How to do it...

How it works...

There's more...

Configuring JSON API in Express

Getting ready

How to do it...

How it works...

There's more...

Creating a user authentication API in Express

Getting ready

How to do it...

How it works...

There's more...

Building a login page with Angular

Getting ready

How to do it...

How it works...

There's more...

Using JWT authentication with Express and Angular

Getting ready

How to do it...

How it works...

Cloud Service Integrations

Introduction

Uploading large multi-part files with Express

Getting ready

How to do it...

How it works...

There's more...

Uploading images to Cloudinary from Express

Getting ready

How to do it...

How it works...

There's more...

Securing image downloads from Cloudinary

Getting ready

How to do it...

How it works...

There's more...

Resizing images and transformations with Cloudinary

Getting ready

How to do it...

How it works...

There's more...

Working with Stripe payment processor in Express

Getting ready

How to do it...

How it works...

Accepting credit card payments in Angular with Stripe

Getting ready

How to do it...

How it works...

MongoDB and Mongoose

Introduction

How to set up and create a MongoDB database

Getting ready

How to do it...

How it works...

Mongo shell commands

There's more...

Connecting to MongoDB through Mongoose

Getting ready

How to do it...

How it works...

There's more...

Working with data model in MongoDB and Mongoose

How to do it...

How it works...

Mongoose Model API

Mongoose Document API

There's more...

Querying for data using Mongoose query selectors

How to do it...

How it works...

Mongoose Query API

There's more...

Relationships

Introduction

Working with data validations and virtuals in Mongoose

Getting ready

How to do it...

How it works...

SchemaTypes API

There's more...

Creating sub-documents in Mongoose models

Getting ready

How to do it...

How it works...

Using pre-save hooks and custom methods in Mongoose Models

Getting ready

How to do it...

How it works...

Creating embedded documents in MongoDB with objectId

Getting ready

How to do it...

How it works...

Creating relational documents in MongoDB with population

Getting ready

How to do it...

How it works...

There's more...

Document API

Build Systems and Optimizations

Introduction

Using ES6 and Typescript with Express.js and Node.js

Getting ready

How to do it...

How it works...

There's more...

Configuring WebPack for use in Node.js applications

Getting ready

How to do it...

How it works...

There's more...

Optimizing asset delivery with gzip compression in Express

Getting ready

How to do it...

How it works...

There's more...

Optimizing images for delivery with WebPack

Getting ready

How to do it...

How it works...

There's more...

Optimizing Font-Awesome with custom font generation

Getting ready

How to do it...

How it works...

There's more...

Debugging

Introduction

Debugging Node.js using the debug module

Getting ready

How to do it...

How it works...

There's more...

Debugging Node.js using node-inspector in Google Chrome

Getting ready

How to do it...

How it works...

There's more...

Debugging Node.js using JetBrain's WebStorm IDE

Getting ready

How to do it...

How it works...

Production error tracking and debugging with Sentry.io

Getting ready

How to do it...

How it works...

There's more...

Automated Testing

Introduction

Creating unit tests for Node.js using the Mocha testing library

Getting ready

How to do it...

How it works...

There's more...

Creating integration tests for Express REST APIs

Getting ready

How to do it...

How it works...

There's more...

Integrating an ESLint test suite into your Mocha tests

Getting ready

How to do it...

How it works...

There's more...

Cross-browser and device testing with BrowserSync

Getting ready

How to do it...

How it works...

There's more...

Whats new in Angular 4

Angular 4 Improvements and New Features

Packaging and Modules

A newly optimized view engine

Added TypeScript 2.2 support

ngIf directive added support for else statements

Support for assigning local variables

New email form input validator directive

Source maps for generated templates

Angular 4 Deprecations and API Changes

Template tags and attributes have been deprecated

Animations are now an optional library

ngFor class is deprecated

Renderer class is deprecated

Component lifecycle hooks are now interfaces

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部