proexpressjs icon indicating copy to clipboard operation
proexpressjs copied to clipboard

Examples for the Practical Node.js book [Apress, 2014]

Results 9 proexpressjs issues
Sort by recently updated
recently updated
newest added

hello.js file ``` javascript //the origin code app.get('*', function(request, response){ resquest.end('Hello World'); }); ``` the above code is not executed. it should correct ``` javascript //the origin code app.get('*', function(request,...

bug

1. cd ch7 2. run `npm start` in the ch7 dir 3. view http://localhost:3000/cookies in browser, it will display `Invalid status code: 0RangeError: Invalid status code: 0 at ServerResponse.writeHead (_http_server.js:192:11)...

package.json "express": "^4.13.4", "serve-index": "^1.7.3", var serveIndex = require('serve-index'); app.use('/shared', serveIndex( path.join('public'), { 'icons': true } )); // web interface with the folder name (shared), Working app.use(express.static('public')); //Open the file...

I was working on the example in chapter 3. I noticed that in your figures you get the response: /**/ typeof updateView === 'function' && updateView({ "name": "Name", "publisher": "foo,...

``` app.get('*', function(request, response){ resquest.end('Hello World'); }); ```

**Chapter 4 - Working with Middleware, P73** "Summary" section, L8 reads: _"Chapter 4 is a deep dive..."_ and should be: _"Chapter 5 is a deep dive..."_

bug

In page 7, second Tip, line 5. "...when you need to use some **receipe** for your project..." --> recipe

bug

**Chapter 6 - Parameters and Routing, P92** On the second block of code: ``` javascript app.get('/admin/:username', function(request, response, next) { //... Same thing, req.user is avaialble return res.render(user); // ->...

bug

Hi, I am new to node.js and am using express framework in nodejs. I am accessing data through rest API using node-rest-client module. If API response getting delayed, then server...