Getting Started
Step-by-step guide to create your first BoxLang module using templates
Pick Your Path
1. Clone the Template
git clone https://github.com/ortus-boxlang/boxlang-module-template-bx.git my-module
cd my-module2. Customize Metadata
{
"name": "My Amazing Module",
"version": "1.0.0",
"slug": "bx-my-module",
"shortDescription": "Does amazing things",
"boxlang": {
"minimumVersion": "1.0.0",
"moduleName": "myModule"
}
}3. Configure ModuleConfig.bx
class {
property name="moduleRecord";
property name="boxRuntime";
property name="log";
this.version = "1.0.0";
this.mapping = "myModule";
this.author = "Your Name";
this.description = "My amazing module";
function configure() {
settings = {
loadedOn: now(),
loadedBy: "Your Name"
};
interceptors = [];
customInterceptionPoints = [];
}
function onLoad() {}
function onUnload() {}
}4. Add Your First BIF
5. Test Locally
Module Folder Structure
Available Template Injections
Property
Type
Purpose
Next Steps
Last updated
Was this helpful?
