Preparing to Learn ColdFusion


You're just about ready to go. But before you do, you need to know a little about the sample applications you'll be using.

Orange Whip Studio is a low-budget movie studio waiting for its first big break. To help it get there, you need to create a series of Web applications. These include:

  • A public Web site that will allow viewers to learn about the movies

  • Intranet screens for movie management (budgets, actors, directors, and more)

  • A public e-commerce site allowing fans to purchase movie goodies and memorabilia

Your job throughout this book is to build these and other applications.

TIP

Most of the applications created in this book share common resources (images and data, for example) but are actually stand-alone, meaning they don't require components or code created elsewhere. Although this isn't typical of real-world application development, in this book it is deliberate and by design.


Here are a few things you must know about how to manage code and resources:

  • You'll create and store the Orange Whip Studio applications in a folder named ows beneath the Web root.

  • ows contains a folder named images, whichthis should come as no surprisecontains images used in many of the applications.

  • A folder named data in the ows folder contains the database used by the applications.

    CAUTION

    The database is being stored in ows/data for simplicity's sake, but as a rule, this is a practice to be avoided on production servers. Any files beneath the Web root can be access by users, and so data files stored under the Web root can be freely downloaded. As such, any files that you do not want in unknown hands (including database files) should never be stored under the Web root.


  • Web applications are usually organized into a directory structure that maps to application features or sections. However, you won't do that here. To simplify the learning process, you'll create a folder beneath ows for each chapter in the book: 4 for Chapter 4, 5 for Chapter 5, and so on. The files you create in each chapter should go in the appropriate folders.

ON THE CD

The files and directories on the accompanying CD follow the same organization and naming conventions as described here.


Assuming you are running ColdFusion locally (this is advised), and assuming you installed the files in the default locations, the URL to access the ows folder will be http://localhost:8500/ows/ if you're using the integrated HTTP server, or http://localhost/ows/ if you're using an external HTTP server. You would then access folders beneath ows, such as the folder for this chapter, as http://localhost:8500/ows/4/ or http://localhost/ows/4/ (again, depending on whether you're using ColdFusion's integrated HTTP server).

NOTE

Once again, 8500 is the default port used by ColdFusion's integrated Web server. The default port used by the integrated Web server in a JRun/ColdFusion installation is 8300. If you are using an external Web server (IIS or Apache, for example) then the default port of 80 will likely be used (and can also be entirely omitted from URL's).


TIP

If you have problems resolving host localhost, TRy using IP address 127.0.0.1 instead. 127.0.0.1 is a special IP address that always refers to your own host, and localhost is the host name that should always resolve to 127.0.0.1.


Macromedia Dreamweaver is a development environment for creating Web sites and applications. Built by combining key features of Macromedia Dreamweaver (a tool primarily for page designers), Macromedia Dreamweaver UltraDev (used for rapid application prototyping and basic application development), and Macromedia ColdFusion Studio (a professional-strength editing and coding environment), this new integrated development environment is the one development tool designers and developers alike can use.

As a ColdFusion developer you'll be using Dreamweaver extensively, which is why I dedicated an entire chapter to this product (see Chapter 2, "Introducing Macromedia Dreamweaver MX 2004"). For now, to give you a sneak peak at what ColdFusion is all about, you'll use Dreamweaver to build two applications:

  • A data browser that displays database contents and contains links for moving from one page of the listing to another.

  • An age calculator that asks for your date of birth and calculates your age.

You'll set up both of these applications using Dreamweaver, but you'll create each very differently. The former will use Dreamweaver features that require no coding at all, and you'll code the latter manually.

And now you're really ready to go.



Macromedia Coldfusion MX 7 Web Application Construction Kit
Macromedia Coldfusion MX 7 Web Application Construction Kit
ISBN: 321223675
EAN: N/A
Year: 2006
Pages: 282

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net