Node for Front-End Developers
Publisher: O'Reilly Media
Published: 2012
Place of publication: Sebastopol
Language: eng
Format: [electronic resource]
Number of pages: 58
ISBN-13: 9781449329051; 9781449329044
Subjects: Node; Web; Web sites; Online social networks; JavaScript (Computer program language); Client/server computing; COMPUTERS; Web site development; Authoring programs; Information visualization; Computer science; Computer programs; Social Networking; Webometrics
Description: If you know how to use JavaScript in the browser, you already have the skills you need to put JavaScript to work on back-end servers with Node. This hands-on book shows you how to use this popular JavaScript platform to create simple server applications, communicate with the client, build dynamic pages, work with data, and tackle other tasks. Although Node has a complete library of developer-contributed modules to automate server-side development, this book will show you how to program with Node on your own, so you truly understand the platform. Discover firsthand how well Node works as a web s.
Notes: Description based on print version record.
Table of contents: title: Table of Contents; Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Chapter 1. Getting Node Set Up; Node and NPM; REPL; File Organization; Chapter 2. Serving Simple Content; Writing a Response Manually; Serving a Static Page; Serving Client-Side Assets; Adding In Middleware; Chapter 3. Interaction with the Client; Receiving Data from the Querystring; Routing and Receiving Data from a Path; Receiving Data from a POST; Responding to Asynchronous Requests; Real-Time Communication; Chapter 4. Server-Side Templates; Creating a Dynamic Page.; title: Partial TemplatesParsing Other File Types; Creating Files on the Fly; Chapter 5. Data Sources and Flow Control; Connecting to a Database; Storing Data in Files; Callbacks and Messaging; Chapter 6. Model-View-Controller and Sharing Code; Implementing the MVC Pattern; Out-of-the-Box MVC; Sharing Modules Between the Client and Server; Postscript.