Today's mobile devices have GPS and standard APIs to give you access to coordinates—but what can you do with that data? With this concise book, application developers learn how to work with location data quickly and easily, using Node.js, CouchDB, and other open source tools and libraries.
Node.js makes it simple to run event code on the Web, and the CouchDB document-oriented database lets you store location data and perform complex queries on it quickly.
CoffeeScript Programming with jQuery, Rails, and Node.js
Learn CoffeeScript programming with the three most popular web technologies around
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented.
Build three example applications in CoffeeScript step by step.
If you’re an experienced PHP developer, you already have a head start on learning how to write Node.js code. In this book, author Daniel Howard demonstrates the remarkable similarities between the two languages, and shows you how to port your entire PHP web application to Node.js. By comparing specific PHP features with their Node counterparts, you’ll also discover how to refactor and improve existing PHP 4 or PHP 5 source code.
IN 1995, WHEN I WAS IN MY SECOND YEAR IN COLLEGE, I was introduced to UNIX network programming.
In C, you could create sockets to open TCP connections to servers and code the servers that
accepted these connections. I remember the excitement I felt the fi rst time I created a TCP server: I
could accept connections and receive and send messages on them.
If I wanted my server to accept many concurrent connections, the common solution was to use
threads, and soon I had created my fi rst multi-threaded TCP server.
One of the difficulties I had when trying to learn Node.js was how to get started.
The references that I found either dealed with quasi-academic topics such as data
grams and event emitters, or else myopically focused on a topic without regard for
the big picture. This book takes you through the complete process of building an
application in Node.js. It starts with the canonical “Hello World” example, and goes
on to build a real-time web application capable of sending trading information to
thousands of connected clients.
What make Node.
faced with being a single-threaded language in a multimedia, multitasking,
thrived. One after the other, potential rivals in the browser—Flash, Silverlight,
and Java applets, to name a few—have come and (more or less) gone.