Book Image

CoffeeScript Application Development Cookbook

By : Mike Hatfield
Book Image

CoffeeScript Application Development Cookbook

By: Mike Hatfield

Overview of this book

Table of Contents (18 chapters)
CoffeeScript Application Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with Amazon's S3 storage


Amazon provides many cloud services, including their Simple Storage Service (S3), a cloud-based file store.

S3 provides inexpensive storage and retrieval for our digital media, large downloads, and backups.

In this recipe, we will use Amazon's Node-based SDK to add S3 features to our applications.

Getting ready

In S3, a bucket is a storage container where we can keep our files. We can create, list, and remove buckets using CoffeeScript.

In this section, we will demonstrate how to do this.

Before beginning, we need an AWS account. You can create an account by visiting the http://www.amazon.com home page and clicking on the Sign Up link at the top.

Tip

Even though S3 is a paid service, it allows us to store up to 5GB for free for the first year on new AWS accounts.

Once you have an account, you must create a user account that will be used by your application to authenticate Amazon's web services:

  1. To create an account, log on to the https://aws.amazon.com website and...