ColdFusion Resume App: Code and Summary
Join the DZone community and get the full member experience.Join For Free
To begin extract the contents of the ZIP file into any directory of your choice. There should be two sub-directories, **application** and **tomcat**. You shouldn't need to do much of anything in the **application** directory, but you will need to do a slight configuration change in the **tomcat/conf** directory. In this directory open up **server.xml** and near the bottom find the XML node for the localhost host. There is a node inside of this named **Context**, and the **docBase** path will need to be modified to match where you have extracted the ZIP file. Save those changes.
Next you will need to actually have an instance of the Apache CouchDB server running. It is beyond the scope of this blog post to detail how to actually setup Couch, but there are enough tutorials out there to get you started. In fact you will likely start at http://couchdb.apache.org/. Get Couch installed and setup. Once you've done this your will need to log into Futon and create a database called "resume". From here you probably want some data, so I have included a copy of my resume JSON object that can be inserted using the command line (CURL is a nice option). Here is a blog post on using CURL to put data into Couch. You can find the JSON data in the **application/doc** directory. There are two documents to import.
If you thought there was more than that then I am sorry to say that you should just be able to start up the app. First make sure Couch is running. Then browse to the **tomcat/bin** and run either **startup.bat** or **startup.sh**, depending on your OS. From here you should be able to browse to **http://localhost:8080** and see my resume. To get to the Railo web administrator you can just browse to **http://localhost:8080/railo-context/admin.cfm** and use the password "password".
That's the summarized breakdown. If anyone has any questions please do not hesitate to contact me and I will try to answer as swiftly as my work schedule allows! Happy coding!
Published at DZone with permission of Adam Presley. See the original article here.
Opinions expressed by DZone contributors are their own.