Free Sample
+ Collection

CoffeeScript Application Development Cookbook

Cookbook
Mike Hatfield

Over 90 hands-on recipes to help you develop engaging applications using CoffeeScript
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783289691
Paperback368 pages

About This Book

  • Use CoffeeScript to create and test applications and backend services
  • Build applications using popular frameworks, libraries, and platforms
  • Interface with popular services to send e-mails, text messages, and use cloud storage

Who This Book Is For

If you are interested in developing modern applications, this book will help you leverage the vast JavaScript ecosystem while using an elegant language, helping you avoid the shortcomings of JavaScript.

Table of Contents

Chapter 1: Getting Ready
Introduction
Configuring your environment and tools
Configuring Sublime Text
Configuring Visual Studio
A quick dive into CoffeeScript
Debugging CoffeeScript using source maps
Debugging CoffeeScript using Node Inspector
Chapter 2: Starting with the Basics
Introduction
Working with strings
Working with numbers
Working with dates and times
Working with arrays
Working with classes
Dealing with the this keyword
Chapter 3: Creating Client Applications
Introduction
Working with jQuery
Working with Backbone
Working with AngularJS
Communicating in real time with Socket.io
Chapter 4: Using Kendo UI for Desktop and Mobile Applications
Introduction
Using the Kendo UI Core widgets
Using the Kendo UI Core mobile widgets
Chapter 5: Going Native with Cordova
Introduction
Creating a basic Cordova application
Using the camera
Using geolocation
Using contacts
Getting device information
Chapter 6: Working with Databases
Introduction
Working with SQLite
Working with Redis
Working with MongoDB
Working with CouchDB
Chapter 7: Building Application Services
Introduction
Working with base64 encoding
Working with domain name services
Parsing a URL into its various components
Creating RESTful web services
Chapter 8: Using External Services
Introduction
Working with web services
Sending e-mail
Sending SMS and MMS messages
Working with Amazon's S3 storage
Transferring files via FTP
Chapter 9: Testing Our Applications
Introduction
Unit testing with QUnit
End-to-end testing with Mocha and Zombie.js
Stubbing and mocking with Sinon
Chapter 10: Hosting Our Web Applications
Introduction
Compiling our source with Grunt
Preparing deployments for staging and production
Deploying our application to Heroku
Deploying our application to Microsoft Azure
Chapter 11: Scripting for DevOps
Introduction
Executing shell commands with exec
Executing shell commands with spawn
Copying, moving, and deleting files and directories
Archiving files and directories
Parsing CSV files
Parsing fixed-width files
Padding and aligning output
Formatting dates with moment.js
Formatting numbers with accounting.js

What You Will Learn

  • Create user interfaces with jQuery, Backbone, AngularJS, and Kendo.UI
  • Develop RESTful services using Node and Express
  • Read and write data using SQLite, Redis, MongoDB, CouchDB, and Microsoft SQL Server
  • Interface with external services to send e-mails, SMS text messages, and use cloud storage services such as DropBox and S3
  • Test your code using Jasmine, QUnit, Zombie, Persona, and Mocha with Chai
  • Work with a variety of hosts such as Heroku, Azure, and Amazon Web Services
  • Use CoffeeScript for DevOps tasks such as managing files and directories, and parsing CSV and fixed-width files

In Detail

CoffeeScript is a JavaScript compiler. CoffeeScript brings many things to the table that are lacking in JavaScript itself. This includes a class and module system, a syntax that is cleaner, less terse, and well structured, and list comprehensions that make working with collections of data more enjoyable. CoffeeScript can be used as not only a tool for the Web, but also as a tool for day-to-day DevOps type tasks (for example, file processing, working with databases, and more).

This practical guide contains a wide range of recipes demonstrating how CoffeeScript can be used while developing the entire stack of an application. With recipes that range from easy and intermediate to advanced, there is something here for anyone looking to escape the common pitfalls of JavaScript and develop in a clean and expressive language.

Authors

Read More