2017-07-31 11:51:26 +05:30

2.4 KiB

Node Cookbook - Third Edition

This is the code repository for Node Cookbook - Third Edition, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

The principles of asynchronous event-driven programming are perfect for today's web, where efficient real-time applications and scalability are at the forefront. Server-side JavaScript has been here since the 90's but Node got it right.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

const express = require('express')
const app = express()
const past = require('./past')
const future = require('./future')
app.get('/:age', (req, res) => {
    res.send(past(req.params.age, 10) + future(req.params.future, 10))
})
app.listen(3000)

The following is a list of the software that is required to run the examples in this book: Chapters 1-10: Windows, macOS, or Linux. Chapter 11: Linux or macOS (we recommend that Windows users work through Chapter 11, Deploying Node.js, by SSH-ing into a remote Linux machine). Node 6 or higher. In cases where the code is specific to Node 8, this is specified. Node can be downloaded from http://nodejs.org. Curl 7: Curl can be downloaded from http://curl.haxx.se.

Suggestions and Feedback

Click here if you have any feedback or suggestions.