To start off, let's just create a place to store our application.
1. In the
<Railo Install Location>/wwwroot/
path, let's create a folder namedVideoShare
. This might as well be the name of our application.2. In the
VideoShare
folder, create a file namedApplication.cfc
and add the following code:component { this.name = "VideoShare"; this.datasource = "VideoShare"; this.ormEnabled = true; this.sessionmanagement = true; this.ormSettings = {}; this.ormSettings.dbcreate = "dropCreate"; }
Let's look at the previous code for a second as there is a lot going on. We already know that the
Application.cfc
file controls the settings in an application; so by creating a new one here, we can manage various settings. The first setting is the name of the application, in this case, we have named itVideoShare
and then we have defined that it will use a datasource named VideoShare, which we will set up in the next section. Because we will want to track...