FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

ColdBox Modern APP Template

v6.9.0 MVC

Modern Organization Template

This template is a work in progress where we are testing a different approach to ColdBox templates. Instead of having all files in the web root, this template only puts public files in the web root and thus called public.

If you are using CommandBox, everything should "just work" but if you want to run this behind IIS/Apache, etc you'll need to re-create the web server aliases that are in the server.json.

Structure

  • app - Location of the ColdBox CFML app (Handlers, config, interceptors, views, custom modules, etc.)
  • coldbox - ColdBox libs
  • lib - Java libs
  • logs - App and Server logs
  • modules - CommandBox installed ColdBox modules
  • public - Public webroot (UI assets, etc)
  • resources - Migrations, apidocs, UI source assets
  • testbox - TestBox libs
  • tests - Tests

Aliases

Everything is locked down by default. Any modules you install that require UI assets will require a CommandBox web alias (https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/aliases) that you can provide easily in the server.json. Here are the ones we ship with:

"aliases":{
	// We expose the cbdebugger module
	"/modules/cbdebugger":"../modules/cbdebugger",
	// We expose the ColdBox Exceptions UI
	"/coldbox/system/exceptions":"../coldbox/system/exceptions/",
	// Expose TestBox for testing purposes
	"/testbox":"../testbox/",
	// Expose Tests for testing purposes
	"/tests":"../tests/"
}

License

Apache License, Version 2.0.

Source Code

Quick Installation

Each application templates contains a box.json so it can leverage CommandBox for its dependencies. Just go into each template directory and type:

box install

This will setup all the needed dependencies for each application template. You can then type:

box server start

And run the application.


THE DAILY BREAD

"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12

  •   Ortus Solutions
  • Published
  • 6.9.0 is the latest of 9 release(s)
    Published
  • Published on {{ getFullDate("2023-03-17T17:35:52Z") }}

$ box install cbtemplate-modern

No collaborators yet.
  • {{ getFullDate("2022-03-22T21:38:37Z") }}
  • {{ getFullDate("2023-03-17T17:35:52Z") }}
  • 1,371
  • 84