Programming instructions

56 Lesson 1 Preparing to Build the Sample Application
Each lesson guides you through a scenario to enhance the Compass Travel Trip
Maintenance application. Sections within a lesson present basic programming concepts
that you need to understand before completing the section exercise(s).
Depending on your programming experience, you can read the entire lesson then
proceed to the hands-on exercises, or you can skip some information in the lesson and
proceed directly to the exercises.
Working directories
The following table describes the working directories for this tutorial:
Locating the working directories
You can locate the working directories for this tutorial under your web root directory. For
example, the directory path on your computer might be:
(on Windows NT) <mywebserverdocroot>\cfdocs\getting_started
(on UNIX) <mywebserverdocroot>/cfdocs/getting_started
You can view ColdFusion application pages on your local computer by opening a web
browser and entering one of the following URL:
For more information about the tutorial file structure and the location of the
getting_started subdirectories, see “Verifying the tutorial file structure” on page 36.
Directory Description
my_app You will save all your source code in this directory.
solutions You can find solutions to all the exercises in this directory.
db You will use this directory as the working directory for the Compass
Travel database.
Note: As discussed earlier in Chapter 4, you should verify that the
Compass Travel database file residing in the db directory is the original
file supplied. This file should have the same date as the file in the
new_user_db directory. If date on the file in the db directory is different,
replace the file in db directory with a copy of the Compass Travel
database file that is located in the new_user_db directory.
photos You will use this directory to access existing trip photographs.
images You will use this directory to access application image files.
Configuration URL
For local third-party
web server
configuration
http://localhost/cfdocs/getting_started/my_app/<pagename>.cfm
For standalone
ColdFusion web
server configuration
http://localhost:8100/cfdocs/getting_started/my_app/
<pagename>.cfm