GithubHelp home page GithubHelp logo

expressjsguide's Introduction

Express.js Guide

Express.js API reference, quick start guide and hands-on tutorials aplenty. 270+ pages, 60+ illustrations, 20+ examples.

http://expressjsguide.com/

Feedback

Any bugs? Submit GitHub issue to https://github.com/azat-co/expressjsguide/issues.

Changelog

November 3, 2013

  • Converted to path.join() for consistency (thanks to Peter deHaan)
  • Fixed JSHint warnings (thanks to Peter deHaan)
  • Added Grunt file (thanks to Peter deHaan)
  • Wrong query string definition (thanks to Gary Ryan)
  • Errata: typos and grammar

Details: https://github.com/azat-co/expressjsguide/issues?page=1&state=closed

expressjsguide's People

Contributors

pdehaan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

expressjsguide's Issues

Confused by mention of "up-time" module

PDF p23; I was confused by "up-time" module. If I go to the GitHub repo/npm, the package seems to have a "This project is deprecated" message.

Clicking through the article makes it worse as it seems that the "up" module name was recycled into something completely different.

Callback Array Example Issue

In the book, Chapter 15, Page 53 - This code :

var authAdmin = function(req,res,next){ ...

}

var getUsers = function(req,res,next){ 
    ...
    return next();

    return next(); 
}

var renderUsers = function(req,res){

}

var admin = [ authAdmin, getUsers, renderUsers ];

app.get('/admin', authAdmin, getUsers, renderUsers);

should actually be :

var authAdmin = function(req,res,next){ ...

}

var getUsers = function(req,res,next){ 
    ...
    return next();

    return next(); 
}

var renderUsers = function(req,res){

}

var admin = [ authAdmin, getUsers, renderUsers ];

app.get('/admin', admin);

I'd do a pull request, but I can't find that in the actual code. I think it's just a snippet from the book.

Extra )

I would also let you know that there's a typo in the code at page 50 and 52 (I'm talking about the pdf version), when you pass multiple middleware functions at the same route

app.get('/api/v1/stories/:id',function(req,res,next) {
// ...
}), <- the round bracket should not close here
// ...
});

Hope this helps, keep up the good work :-)

doctype

This is to report that your jade template on page 27 of your Express guide should not declare doctype 5 anymore but doctype html.

As doctype 5 was set deprecated - see expressjs/express#1931

Section 12.2 (page 39)

app.use(express.logger()); //vanilla logger 
app.use(express.logger('short'));
app.use(express.logger('dev')

missed round bracket

Typo in chapter 10 on page 157

On the lower half of the page, there is the following snippet of code:

module.exports = {
  stories: require('./stories'),
  users: require('./users)
};

It is missing a closing apostrophe for the argument of the second call to require.

These short snippets are not in Github for pull requests, right?

Section 21, Extraneous full stops

var stories = require.('./route/stories');
var users = require.('./route/users');

Should be:
var stories = require('./route/stories');
var users = require('./route/users');

typos

on page 28

• 1 app.disable('etag');
• 2 console.log(app.disabled('etab'));

The latter should read ‘etag’ most probably...

on page 29

view engine holds the template file extension, e.g., ‘ext’ or ‘jade’, to utilize if the file extension is not passed to the res.render() function inside of the request handler.

here ‘ext’ should read ‘ejs’ I suppose...

Just let me know if such corrections are just creepy or useful to you...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.