Book Image

Implementing AppFog

Book Image

Implementing AppFog

Overview of this book

AppFog is the leading platform-as-a-service provider of PHP, Ruby, Node.js, and Java solutions. It is used by developers worldwide to deploy tens of thousands of applications. AppFog delivers a reliable, scalable, and fast platform for deploying applications in the cloud.This book is a hands-on guide that will walk you through creating and deploying applications to the cloud using AppFog, which will allow you to get your application deployed without the hassle of setting up servers.This book demonstrates how to use the AppFog service to build an application and have it running in the Cloud. It will walk you through the initial AppFog setup process and explain how to create your first application in minutes.You will also discover how to use services such as databases to make your applications more powerful. You will also learn how to create applications from scratch.You will find out everything you need to know to get an application running in the cloud for the first time.
Table of Contents (13 chapters)
Implementing AppFog
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

AppFog is a cloud-based solution that allows users to quickly build and deploy applications without having to handle server configuration and setup. This book is intended to help you to quickly get started using AppFog and learn to create and deploy applications to the AppFog cloud.

What this book covers

Chapter 1, Getting Started With AppFog, creates an account with AppFog and gets your first application running.

Chapter 2, Using the Command-line Tool, installs and uses the command line tool to download an application from AppFog, then modifies and uploads it back to the cloud.

Chapter 3, Using Databases, uses AppFog’s backend services to create a data store for your application.

Chapter 4, Creating an Application From Scratch, creates an application using only the command line tools and gets it running in the cloud.

Chapter 5, Command-line Reference, helps you learn about the many command line tools available.

Appendix, Installing the AppFog Gem, helps you install the Ruby Gem to be able to use the command line tools.

What you need for this book

The examples in the book are written in Ruby and HTML. To follow along you will need to have Ruby running on your computer. You will have to install the AppFog Ruby Gem, which is explained in the book.

Who this book is for

This book is aimed at anyone who wants to deploy applications to the cloud using AppFog. It is written mainly for developers who are writing their own applications to deploy.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

A block of code is set as follows:

require ‘sinatra’

get ‘/’ do
  “Inside AppFog”
end

Any command-line input or output is written as follows:

$ af pull insideaf1

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title through the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website, or added to any list of existing errata, under the Errata section of that title.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.