CoffeeScript Application Development Cookbook

Over 90 hands-on recipes to help you develop engaging applications using CoffeeScript

CoffeeScript Application Development Cookbook

Mike Hatfield

1 customer reviews
Over 90 hands-on recipes to help you develop engaging applications using CoffeeScript
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783289691
Paperback368 pages

Book Description

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.

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

Authors

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

Book Details

ISBN 139781783289691
Paperback368 pages
Read More
From 1 reviews

Read More Reviews