Chapter 3. Configuring Services

The AppFog services are preconfigured backend services you can use with your applications. These include data stores and message queues.

In this chapter we will set up a simple database using AppFog's MySQL service. To do this, we will create a new application, set up a database service through AppFog, create a database with sample data, and hook it all together.

Creating a database console application

Before you can create a service, you have to create an application that uses the service. If you're working with databases, one application that is convenient is a database console. The AppFog provides just what we need as a preconfigured application, so that's what we'll use. To do this, we'll use the AppFog console, just as we did in Chapter 1, Getting Started with AppFog. Perform the following steps for the same:

  1. Point your browser at the AppFog console at https://console.appfog.com.
  2. Click on Create App at the top of the page. The New Apps page appears.
  3. Click on the button for phpMyAdmin.
    Creating a database console application
  4. Click on one of the supported infrastructure buttons, like in Chapter 1, Getting Started with AppFog.
  5. Enter an application name under Choose a subdomain. For this example, I am going to use insideaf-admin as the name.
  6. Click on Create App. After a delay while the application is created, the application control panel appears.

Before we can start to work with this application, we need to configure it and bind a database service to it. These are tasks we'll cover in the next two sections.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.217.220