Getting Started With Code Generators - Part 1

So the first post in my series will focus on installing the first code generator that I plan on evaluating. The Illudium PU-36 Code Generator by Brian Rinaldi. Rather then try to creatively come up with a better description then Brian's I'll just quote the description from the project page:

This project generates ColdFusion components (i.e. bean, DAO, gateway, service), ColdSpring XML, Transfer XML, and ActionScript Value-Objects using the admin api and database introspection. The front-end is built in Flex 2. The code outputted for easily pasting or saving into a project to allow you to get a headstart on some of the gruntwork of doing OO in CF. It uses XSL to generate the components and is designed to allow you to easily add to or modify the generated code. You can even create new templates that can be swapped out at run-time.

The first step is to download the tool. There are two options - vanilla (HTML) or chocolate (Flex - yummy). (OK, they're really not called vanilla and chocolate, but I'm taking some creative liberties). I've checked out both versions before - very briefly mind you - but for this go 'round I'm going with the super sexy Flex version.

Step 2 isn't much harder - install the generator. Again I'll quote from the project page:

1. Copy the contents into a directory name "cfcgenerator" under your web root

NOTE: If you need to place it elsewhere, a mapping should work, but you will need to edit your webroot\web-inf\flex\services-config.xml and set true

1. Set your ColdFusion administrator password as the value of adminPass in Application.cfm

2. That's it!

There was one minor tweak I had to make to get the flex generator to run. The Flex version zip is packaged as /cfcgeneratorFLEX - but some of the createObject calls point to /cfcgenerator. A simple global find and replace on cfcgeneratorFlex (and change the name of the root folder) seems to do the trick. I've filed a bug on this.

So now the generator is installed. Simple stuff that's for sure. In my next post I'll talk about getting into the tool and generating some code.

Update: After talking with Brian it seems that the version that I obtained from Google Code was old - the new and most recent version is available at RIAForge. You can find it here: http://cfcgenerator.riaforge.org/

Related Blog Entries

Comments
Just for the record, the HTML version isn't being supported any longer. I keep it there for those who still want it, but many of the recent updates to the generated code and such have not been implemented there. Even if you look at the code structure of the model, it is completely different. So, I recommend going with the Flex version.
# Posted By Brian Rinaldi | 2/12/07 12:47 PM
Oh...and thanks for the link :) Looking forward to hearing more about your experience.
# Posted By Brian Rinaldi | 2/12/07 12:48 PM
Todd - Could you describe database tables that you are using? Are these tables ones you've designed for this project or are you using previously existing tables?
# Posted By Bruce | 2/12/07 4:58 PM
Bruce - I'll get into that in my next post a bit. Still putting the finishing touches on the db actually.
# Posted By todd sharp | 2/12/07 6:43 PM

Calendar

Sun Mon Tue Wed Thu Fri Sat
     12
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       

Subscribe

Enter your email address to subscribe to this blog.

Tags

actionscript ajax blogging cfsnippets coldfusion flash forms flex funny stuff misc model-glue off topic personal project learn slidesix sql

Recent Comments

Adding Auto Generated Code Downloads to BlogCFC
ada5fsa said: http://www.mountwashingto... http://extjs.com/forum/me... h... [More]

BlogCFC Survey #2
ada5fsa said: http://www.mountwashingto... http://extjs.com/forum/me... h... [More]

Most Difficult Captcha Of All Time
kokkooo said: [url=http://synchrophase.info/...]消費者金融 ブラック[/url] [url=http://geji-geji.com/]消費者金融ブラック[/url] [url=http... [More]

Most Difficult Captcha Of All Time
kokkooo said: <a href="http://synchrophase.info/...">消費者金融 ブラック</a> <a href="http://gej... [More]

Using A PlayStation 2 HDD In Your PC
Vodin said: Well dang. Thanks man, my uncle who owns a Video Game shop had a PS2 harddrive in the junk box, I sn... [More]

RSS


coldfusionbloggers

FullAsAGoog MXNA

Consumed By Feed-Squirrel.com