Book Image

Implementing AppFog

By : Matthew Nohr, Isaac Rabinovitch
Book Image

Implementing AppFog

By: Matthew Nohr, Isaac Rabinovitch

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

Creating and populating a database table


With the database console application active, you can open it in your web browser and use it to manipulate the MySQL service. We'll use the console application to create a database table and populate it. The table will implement a very simple to-do list.

Our database table will be called "Tasks" and will have three columns:

  • ID: It is an automatically incrementing number that uniquely identifies the row

  • Name: It is a string value containing the name of a task to be done

  • Completed: It is a Boolean value containing the completion status of the task.

Now, perform the following steps:

  1. Point your web browser to the home page for the database console. If you didn't note the address when you created it, go to the application control panel and click on Visit Live Site.

  2. An authentication dialog appears. The user name is the same e-mail address you use to access your AppFog account. The password is the value you previously set in the PMA_PASSWORD environment variable...