ColdBox is an excellent MVC framework that can be used to solve many problems, from creating simple websites to enterprise-level applications. With built-in support for logging, caching, routing, dependency injection, testing, documentation, and more, it covers most of your needs as a developer. It also supports a modular architecture that allows you to grow your application as needed.
Blog
CFCasts - A Peek Inside the Tech Stack
![](png/logo%20(1).png)
Being a new platform from Ortus, I wanted to take some time to dive in to the tech stack we are using to build CFCasts. Many people ask us how we would build a modern CFML site. Well, here's at least one answer.
REST2016 - Route Conditions
![](png/coverimage_7.png)
Sometimes when you define an incoming API route, you want it to match certain environment or aspect conditions. The addRoute()
has an argument called condition
, which can be a closure or UDF pointer that must return a boolean
and receives the incoming requestString
. You can then decide if the route should execute or just be ignored.
So if a route matches via the pattern
, then this closu...
REST2016 - Route Responses
![](png/coverimage_3.png)
You can route responses inline with ColdBox via the addRoute()
function globally in your main routes.cfm
template or within any Module as well. This will allow you to build simple response functions or even mock out or stub a RESTFul service very easily. The paremeters you will use for response routing will be: response, statusCode and statusText
.
The response
argument can be a string or a closure or UDF pointer. T...
REST2016 - Creating Sub-module URL entry points
![](png/coverimage_7.png)
In this entry I will go over how to leverage ColdBox's Modular architecture to RESTFul routing.
In ColdBox, every module's ModuleConfig.cfc
you create has two important facets for building RESTFul services: 1) The this.entryPoint
and the 2) routes
structure in the configure()
method.
If you are creating ColdBox applications using modules, then you will benefit with the capability to nest entry points so they can match to nested sub-modules. Let's say you have the following module structure:
+modules + api + security + data
REST2016 - Introduction to RESTful Tools - Coldbox Relax
![](png/coverimage_5.png)
ColdBox Relax is a set of restful tools, for lazy experts, that provides an easy way to describe RESTful web services, test RESTful Web Services, monitor RESTful web services, and document your RESTful API.
REST2016 - Versioning Your ColdBox REST API with Modules (Runnable Example)
![](png/coverimage_9.png)
In our ColdBox RESTFul RoadShow this month, we've been talking about why ColdBox is the fastest and easiest ways to build a robust REST API in CFML. One of the very powerful features of the ColdBox MVC Platform is that you can use modules to break your apps and APIs up into management chunks instead of building a monolith. Modules also let you decouple pieces of your application so multiple teams can work on different parts. And with the power of CommandBox's CLI and package manager to assemble your app's dependencies, you can even store modules in a completely separate code repository! This is exactly what we're going to demo today.
ColdBox Connection 4/23 Noon Central on JS and CSS Workflows
![](png/coverimage_1.png)
We're having another ColdBox Connection Thursday the 23rd at noon central time where special guest Jon Clausen will share how to work with static assets like CSS and JavaScript. Things he'll cover:
- Workflows and Dependency Management for CSS and Javascript with Bower
- Optimizing production CSS and Javascript using NPM and Grunt
-
ColdBox Connection Video: Intro To TestBox
![](png/coverimage_9.png)
ColdBox Connection: Intro To TestBox and BDD
![](png/coverimage_5.png)
This Tuesday the 28th we'll be bringing back the ColdBox Connection to introduce TestBox, CFML's new unit testing platform. The show will be at Noon Central time. TestBox is MXUnit-compatible so it's easy to get your current testing suite set up. T...