-
Book Overview & Buying
-
Table Of Contents
Express Web Application Development
By :
In this book, you will find a number of styles of text 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: "The router middleware is responsible for handling the requests to the app."
A block of code is set as follows:
app.get('/', function(req, res) {
res.json({message: 'welcome'});
});When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
var not_found = function(req, res) {
res.status(404);
res.render('404', {title: 'Not Found'});
};Any command-line input or output is written as follows:
$ sudo npm install express -g
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "The server will respond with the appropriate data type based on the Accept header."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Change the font size
Change margin width
Change background colour