Node for Front-End Developers and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
Sell Back Your Copy
For a $1.96 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Node for Front-End Developers
 
 
Start reading Node for Front-End Developers on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Node for Front-End Developers [Paperback]

Garann Means (Author)
2.8 out of 5 stars  See all reviews (6 customer reviews)

Price: $14.99 & eligible for FREE Super Saver Shipping on orders over $25. Details
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Monday, June 4? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $6.15  
Paperback $14.99  
Unknown Binding --  

Book Description

February 7, 2012

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 server, and how easy it is to learn and use.

  • Set up Node and learn how to build scaffolding for a web application
  • Work with Node natively to see how it functions as a web server
  • Understand how Node receives client data from GET and POST requests
  • Use the Socket.IO module to facilitate realtime client-server communication
  • Choose from among several Node templates to create dynamic pages
  • Learn how to connect to a database, and store data in files
  • Implement the Model-View-Controller pattern, and share Node modules with server and client

Frequently Bought Together

Node for Front-End Developers + Node: Up and Running: Scalable Server-Side Code with JavaScript + JavaScript Patterns
Price For All Three: $61.30

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • Node: Up and Running: Scalable Server-Side Code with JavaScript $26.52

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • JavaScript Patterns $19.79

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details



Editorial Reviews

About the Author

Garann returned to frontend development three years ago after spending several years working on backends. She started the Austin All-Girl Hack Night and teaches women to code as an instructor for Girl Develop It Austin. When she's not writing JavaScript, she's often operating some sort of power tool as she remodels her 111-year-old house.


Product Details

  • Paperback: 60 pages
  • Publisher: O'Reilly Media (February 7, 2012)
  • Language: English
  • ISBN-10: 1449318835
  • ISBN-13: 978-1449318833
  • Product Dimensions: 9.2 x 7 x 0.1 inches
  • Shipping Weight: 0.8 ounces (View shipping rates and policies)
  • Average Customer Review: 2.8 out of 5 stars  See all reviews (6 customer reviews)
  • Amazon Best Sellers Rank: #373,853 in Books (See Top 100 in Books)

Customer Reviews

Most Helpful Customer Reviews
6 of 6 people found the following review helpful
A nice intro to Node February 13, 2012
Format:Paperback
The book starts off by walking the reader through how to set up his/her node environment. It walks you through installing node and its package management system, npm. Once you have your environment set up the you are introduced to the REPL (read - evaluate - print - loop) with a few short code snippets. The chapter ends with a discussion how to declare which modules your application depends on by using the package.json file.

Chapter two walks the reader down the path of serving up resources be it a string of HTML or static resources like HTML, CSS, and/or JS files. The first example shows you how to write a server that serves up HTML `by hand' which is then quickly followed by how much easier it is to serve static pages when you use npm modules like connect.

After learning how to serve static files the author introduces shows you how to interact with the client by processing HTTP GET requests. The first example uses the module querystring to process GETs with parameters. It reminded me of the early days of the web. Thankfully after another example of processing parameters on the URL with querystring, the author shows you how to do the same thing in a more concise manner using the connect module.

The next topic was how to process HTTP POST requests. We followed the same pattern here, learn how to `roll your own' to process a POST which was then followed by an example of how to do it using the connect module. I liked the approach the author takes throughout the book, show you how to do it yourself first and then introduce a module that can do the same thing in a less verbose manner.

After a brief overview of how to handle JSONP requests the discussion moved onto real-time communication using socket.io. Having just finished a project that uses SignalR (which is a .NET open source project that has similar functionality) I found this subject very interesting. The example made socket.io seem simply and straight forward. In fact, after I finished reading this chapter, I started a spike to redo the project I just finished using socket.io just to see if it was any easier with socket.io.

Chapter four introduced the type of server side templates. It walks you through how to use mustache to layout templates for your application showing you how to use templates and sub templates to promote re-use on the UI side. Towards the end of the chapter the author starts to discuss best practices on how to group your code, separate out code that handles a certain task to promote code re-use and separation of concern.

The next topic of discussion was data access and application flow. The first part of the chapter uses Redis to show the reader how to work in data access to your node applications. I hadn't worked with Redis before but after that part of the book I am now looking into incorporating it into a few projects currently underway. After the Redis discussion was complete workflow was discussed using a pub/sub example using events.

Up to this point in the book I found the flow of each chapter easy to follow. I appreciated the process of doing it by hand and then doing it again with a pre-existing module. It's a great way to show you how something works and exposing you to the node module ecosystem. It seems like there's a module for just about anything you may want to do.

The last chapter varied from the previous ones by jumping into a big chunk of code right away. The code is an example of how to create an MVC application with node. On the plus side, this chapter introduces the express module, which was inspired by ruby's Sinatra web framework and is used by many other node modules. Express has a tool that will create a directory structure for your app and has a view engine, Jade, to create HTML views. Jade's syntax takes a little bit to get use to but once you do it makes creating HTML views easier and much easier to read. Overall the chapter wasn't bad it was just a little code heavy when compared to the previous chapters.

My Thoughts

I came to this book with very little experience with Node.js, I had created a small app for my personal use but nothing huge. Now that I have read this book I feel comfortable enough to use it in a few projects I have on the horizon. I liked the methodology the author took for the first five chapters of doing it the hard way and then showing the reader the easier way to do with available modules.

On a side note, this is the second short book I've read by O'Reilly. I hope they continue these type of short but sweet introductions to new(er) technologies. It certainly helps us come up to speed quickly.
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
Format:Kindle Edition|Amazon Verified Purchase
I've dabbled with Node a bit prior to this book. I've also been writing large scale JavaScript applications for a while so most of the concepts in this book are not new to me.

What this very short book provided me is a crash course in how to use Node to spin up a web server from scratch. Being familiar with both client side and server side development, my experience with Node already surpassed this book; however, reflecting on how the author steps a person through the process without any frameworks (initially) is nice to see.

There were a couple things that I didn't like about this book:

1. It's short because it assumes a lot. The author writes assuming the reader has knowledge of working with maintainable, large scale JavaScript code on the client side; however, from working with the dev community, I'd say this is actually a minority. While the PubSub pattern of development has been around for a while, I do not know many JavaScript developers that would be able to show an example of such.

2. Some subtopics feel forced. The author focuses a lot of a number of different technologies in addition to Node. Socket.Io, Redis, Jade, Express, Require.JS, and Backbone are the major ones. While the information is good, how they were added feels more like an after thought to increase the page count. These additional subtopics also made the flow a bit off to me. We have building with Node from scratch, then using Connect, then we talk about Mustache and instead of keeping with structure, it jumps to Socket.Io and then Redis. I understand the rationale since Backbone and Express were used to illustrate a "putting it all together"-like chapter on MVC, it still felt off.

3. One of the biggest things I hoped to get out the book was understanding module creation better and specifically how to possibly share modules between client and server. Thankfully, this was addressed on the last page of the book; however, how to package a module to be submitted for NPM wasn't. This is more of me having higher expectations on the information in the book than what's truly in there.

Would I recommend this book? - Absolutely.

Was I the target audience for this book? - Probably not since I had already been playing around with Node prior to reading it.

If you are a front end developer with very little knowledge of server side development - this book will be a decent fit for you. If you have decent knowledge of both sides of development and multiple different environments (i.e. .Net, Ruby on Rails, Sinatra, Django, etc) then you may not get as much out of this book.
Comment | 
Was this review helpful to you?
4 of 6 people found the following review helpful
Good, but 58 pages? Really? February 15, 2012
Format:Kindle Edition|Amazon Verified Purchase
I sat down to read up on Node for Front-End Developers tonight. I started cranking through it on my Kindle and noticed that the % was jumping ahead fast. I assumed something was wrong until I hit the end of the book.

I found the content to be helpful, but really is probably not much more than finding a blog article on each chapter. The Backbone.js section was obviously an afterthought as it had very little to offer.

Would I recommend reading this book, yes! Would I recommend paying $6 for 58 pages? Heck no!
Comment | 
Was this review helpful to you?

Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Back Cover | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
 
(2)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject