Converting Fusebox to ColdBox MVC

Sample Apps, Tips & Tricks, Tutorials, Walkthroughs

Fusebox is one of the oldest frameworks for ColdFusion.  My first real ColdFusion job was working on a large intranet site built upon Fusebox.  The framework has changed hands several times and though it has now gone cold in terms of new development but it is still used by 1 in 3 ColdFusion developers according to the State of the CF Union survey results from 2014.  

Party like it's 1999

There's a lot of legacy code out there still running on FuseBox, but that doesn't mean it has to stay that way.  The Internet has moved on to design patterns like MVC and more-object oriented approaches for code reuse and testing.   The thought of reworking your old codebase might seem scary, especially if you're not familiar with MVC and you aren't using any OO principles.  Don't despair though, it's often times better to make incremental improvements to code instead of trying to throw it out and rewrite it from scratch.  The old adage says, how do you eat an elephant? "One bite at a time!"

Read More...

How To Create A JIRA Account And Enter ColdBox Tickets

Community, Tips & Tricks, Tutorials, Walkthroughs

After using the ColdBox MVC Platform or any of the Box libraries you might think of an enhancement or new feature you'd like to see.  Or perhaps you found an issue, and after posting it to our Google Group, we asked you to put in a ticket.  Well, today is you day because here is a step by step guide for getting set up in our bug tracker so you can enter tickets, as well as comment, vote, or watch other people's tickets.  Out open source libraries are developed out in the open for full transparency and to encourage the public to join in and be part of the exciting process.

Atlassian JIRA

Atlassian has created a number of development workflow tools like BitBucket, SourceTree, and Bamboo.  JIRA (pronounced Jeer-ah) is their popular system for bug tracking and does lots of cool stuff with agile plugins. The URL for the Ortus JIRA bug tracker is (We'll wait while you bookmark it):

https://ortussolutions.atlassian.net/browse/COLDBOX/

When you first visit, you'll see something like this. From a non-logged in state you can still view tickets and read comments but you can't create tickets or interact with existing ones.  Start by hitting the green "Log In" button in the upper right hand corner of the screen.

Not logged in (click to enlarge)

On the log in form, click the "Create an account" link on the right hand column under the username and password fields.  Don't be tempted to use the "Log in using Google" option.  That only works if your E-mail address ends in @ortussolutions.com!

Read More...

TestBox BDD v2.0.0 and MockBox Released!

CommandBox, MockBox, News, Releases, TestBox

We are so excited to bring you TestBox 2.0 and MockBox 3.0!  These releases are major releases of our libraries and include not only great features but a new repository home.  TestBox/MockBox have been decoupled from the ColdBox core and are now available standalone only (http://github.com/ortus-solutions/testbox).  They have also been integrated with CommandBox, our new ColdFusion CLI and package manager, to allow you to download, install and even execute tests in the command line.  We have also made available our integration server builds which can also be installed via our CLI.

You can now do this to install TestBox or MockBox.

// install testbox
box install testbox

// install testbox bleeding edge
box install testbox-be

// install mockbox
box install mockbox

// install mockbox bleeding edge
box install mockbox-be

// Execute tests
box testbox run runner="runner path"

// Generate a bdd spec
box testbox create bdd MySpec

 

Release Notes

Bug

  • [TESTBOX-75] - Suite marked as skipped even when nested suites executed
  • [TESTBOX-76] - assertSame / assertNotSame behaving differently from MXUnit
  • [TESTBOX-77] - Incorrect message for isNotEmpty assertion
  • [TESTBOX-79] - isEmpty returns true when it receives a function
  • [TESTBOX-84] - TestBox is walking up the tree instead of down the tree for beforeEach
  • [TESTBOX-87] - addAssertions() method failure on adding CFCs
  • [TESTBOX-90] - teardown(), afterEach() will only be executed if the test not Failed
  • [TESTBOX-92] - HTML reporter not showing skipped or hidden specs/suites correctly

Improvement

  • [TESTBOX-73] - Always output variables when using assertEquals()
  • [TESTBOX-81] - Add a shorthand for getMockBox.prepareMock(Object).$getProperty('VarName')

New Feature

  • [TESTBOX-74] - Ability to pass labels to the URL runner to execute only the labels thanks To Juerg Anderegg
  • [TESTBOX-78] - New method to retrieve private variables: getProperty()
  • [TESTBOX-83] - Add echo of test results on ANT build file so you can see results on the console
  • [TESTBOX-88] - Refactor to its new repository
  • [TESTBOX-93] - Integreate with box.json for CommandBox package management
  • [TESTBOX-94] - TestBox now sends a mini report as headers when making HTTP requests to it

Resources

Finally, TestBox is also a direct drop-replacement for MXUnit as well.  


ColdBox 4 and CommandBox CLI at London Railo Group

CommandBox, Conferences

Luis will be speaking at the London Railo Group next Friday, May 30th at 6:30 pm.  He will be talking about some of the great stuff we're doing in ColdBox 4 (including the complete modularization of the core) as well as our new CFML CLI called CommandBox which we unveiled last week at Into The Box.

If you're in London stop by and say hello.


New PDF Ref Card: Building ColdFusion REST APIs

We have just released a new getting started reference cards, ColdBox REST APIs.  This will give you quick overview of everything you need to get started building ColdFusion REST APIs based on ColdBox's simple MVC conventions and URL routing.

Download it here and give it a read:

REST Ref Card


Texas TestBox BDD Training in 20 days

Events, Training

Just a reminder that our Texas TestBox BDD Bootcamp is in just 20 more days on April 24-25 in Houston, Texas.  These will be 2 days filled with hands-on and theory about TDD/BDD and Automation via Jenkins, ANT and more.  Hope to see you there!

 


Short Screencast on Installing the Ortus FuseGuard Module

FuseGuard Module, Modules, Tips & Tricks

Here is a short introductory video of how you can start protecting your ColdBox applications with our FuseGuard Module!  Enjoy!

 

 


ColdBox Platform Utilities v4.0.0 with TestBox Support Released

CFBuilder, Community, News, Releases

We are so proud to announce another update to our Adobe ColdFusion Builder exension: ColdBox Platform Utilities v4.0.  This update has tons of cool updates and fixes:

Bugs Squashed

Improvements

New Features

So either download the extension and install it or if you have it installed, just click "ColdBox Platform > Check For Extension Updates..." and perform our sweet auto update!  Here are a few screenshots of some new functionality:

Read More...

Use ColdBox to Write Your Next REST API

Relax, Tips & Tricks

REST APIs are a popular and easy way to add HTTP endpoints to your web applications to act as web services for third parties or even other internal systems. REST is simpler and requires less verbosity and overhead than other protocols such as SOAP or XML-RPC. Creating a fully-featured REST API is easy with the ColdBox Platform. Everything you need for creating routes, massaging data, and enforcing security comes out of the box.

The ColdBox MVC Platform has had excellent support for REST APIs for years and is a great choice for your next project.  Using ColdBox automatically affords you many productive features, including (but not limited to) the following:

  • Flexible and simple URL Routing
  • No XML configuration!
  • Easy use of conventions
  • Built-in data rendering
  • Easy control of HTTP verbs and status codes
  • Error Handling
  • Security
  • Caching

Have a read through our ColdBox REST documentation: Building ColdFusion Rest APIs

Also check out our companion project that helps you write and test REST APIs called ColdBox Relax: ReSTful Tools For Lazy Experts

 


New WireBox AOP Ref Card Released

Ref Card, TestBox

We have just released another installment in our series of getting started reference cards, WireBox AOP Ref Card.  For anyone who's been waiting to jump into WireBox Aspect Oriented Programming, here is your nice full-color introduction to AOP with WireBox.

WireBox Ref Card

Download it, print it, read it, and most of all, ENJOY IT!


Categories


Recent Entries

Entry Archives

 



Training Events

ColdBox CFML Jobs

ColdBox Book

book