|
1 | 1 | <span id="intro-to-node.js" class="anchor"></span> |
| 2 | + |
2 | 3 | CHAPTER 6 |
3 | 4 | --------- |
4 | 5 |
|
@@ -698,15 +699,9 @@ To make the POST request by using a command-line interface: |
698 | 699 |
|
699 | 700 | $ curl -d "name=BOB&message=test" http://127.0.0.1:1337/messages/create.json |
700 | 701 |
|
701 | | -And you should get the output in a server terminal window and a new |
702 | | -message "test" when you refresh <http://localhost:1337/messages/list.json>. |
703 | | -Needless to say, all three tests should pass. |
| 702 | +And you should get the output in a server terminal window and a new message "test" when you refresh <http://localhost:1337/messages/list.json>. Needless to say, all three tests should pass. |
704 | 703 |
|
705 | | -Your application might grow bigger with more methods, URL paths to parse, |
706 | | -and conditions. That is where frameworks come in handy. They provide |
707 | | -helpers to process requests and other nice things like static file |
708 | | -support, sessions, etc. In this example, we intentionally didn't use any |
709 | | -frameworks like Express.js or Restify but there are many powerful and useful frameworks for Node. Here's the list of the most popular and notable Node.js frameworks: |
| 704 | +Your application might grow bigger with more methods, URL paths to parse, and conditions. That is where frameworks come in handy. They provide helpers to process requests and other nice things like static file support, sessions, etc. In this example, we intentionally didn't use any frameworks like Express.js or Restify but there are many powerful and useful frameworks for Node. Here's the list of the most popular and notable Node.js frameworks: |
710 | 705 |
|
711 | 706 | - [Derby](http://derbyjs.com) (<http://derbyjs.com>): MVC framework makes it easy to write real-time, collaborative applications that run in both Node.js and browsers |
712 | 707 | - [Express.js](http://expressjs.com) (<http://expressjs.com>): The most robust, tested and used Node.js framework |
|