We are so excited to bring our Box training series back to this year's Adobe ColdFusion Summit on October 8-9th, 2016 at the Mand...
We are so excited to bring our Box training series back to this year's Adobe ColdFusion Summit on October 8-9th, 2016 at the Mand...
We are excited to announce the general availability of ColdBox 4.2.0. This release includes tons of fixes but also great new features and speed improvements. If you have CommandBox installed, you can upgrade now by just typing: box update coldbox
or get started with a new ColdBox app by typing: box coldbox create app --installColdBox
.
Here is a synopsis of the major feature updates and improvements in this release.
Today we will be making a contact database that you can quickly and easily manage using ColdBox and Vue.js. We will be using bootstrap in our project to make it the UI look a little better but it is completely optional if you want to use this in your own project.
For this project I will be using CommandBox to generate all my files.
TL;DR: View the repo here
Lets Begin.
Step 1: You can skip this step if you already have a project set up.
From CommandBox run:
coldbox create app name=CBVue skeleton=rest --installColdBox
This will give us a minimal project with a handlers\BaseHandler.cfc (needed to make our life easy when creating a REST API) and an handlers\Echo.cfc which is an example usage to get you started.
Now that we have our project started we need to tweak a few things.
First, since this is a template that is expecting to be setup for REST only, the Echo.cfc is set to be the default entry point. Since we want to create a view that accesses a REST API we need to point that to a view.
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...
Are you ready to enter the exciting world of app building? In today's world, 60% of people are viewing your website on a mobile phone most sites are hard to navigate. People constantly ha... REST2016 - Testing your API with TestBox
Gavin Pickin |
March
18,
2016
Are you writing APIs? Going to start writing APIs? Now is the time to start testing. Do it early, and often, and reap the benefits as the project grows. TestBox, the defacto CFML test suite, can help your test your API, whether it’s CFML or not. I will assume you have the basic TextBox installation setup. REST2016 - Route Responses
Luis Majano |
March
14,
2016
You can route responses inline with ColdBox via the
The REST2016 - Creating Sub-module URL entry points
Luis Majano |
March
11,
2016
In this entry I will go over how to leverage ColdBox's Modular architecture to RESTFul routing.
In ColdBox, every module's 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
Gavin Pickin |
March
11,
2016
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. TestBox v2.3.0 Released!
Luis Majano |
March
11,
2016
Team TestBox is proud to bring our latest release to the masses, v2.3.0. This release includes a collection of fixes but also several new cool features thanks to Mr Eric Peterson and our Slack community. It has been incredible to get so much community support in this project and so many pull requests and even to our documentation. So thank you so much for supporting and believing in us. This release is for you! All the docs have been updated in our documentation book and check out the what's new page for an in-depth overview of this release. You can also very easily get started or update your project with TestBox via CommandBox CLI for ColdFusion (CFML): |