-
Book Overview & Buying
-
Table Of Contents
MEAN Blueprints
By :
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Create a file called app/models/token.js."
A block of code is set as follows:
'use strict';
const LEN = 256;
const SALT_LEN = 64;
const ITERATIONS = 10000;
const DIGEST = 'sha256';
const crypto = require('crypto');
module.exports.hash = hashPassword;
module.exports.verify = verify;When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
require('./config/express').init(app);
require('./config/routes').init(app);
Any command-line input or output is written as follows:
Authentication Basic authentication √ should authenticate a user and return a new token √ should not authenticate a user with invalid credentials 2 passing
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "It triggers an event when the Save button is clicked on and the form is submitted."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.