coldbox-templates / modern

A fresh new modern approach to a base template
4 stars 2 forks source link

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

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.

Important Links

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