BoxLang ๐Ÿš€ A New JVM Dynamic Language Learn More...

Elixir APP Template

v7.2.0+12 MVC

Elixir Template

This advanced template leverages ColdBox and the (ColdBox Elixir)[https://github.com/ColdBox/elixir] project for asset management and compilations. You can place all your static assets in the resources/assets folder and Elixir will combine, version, copy, and even babelify your code to their appropriate location in the includes folder.

Please check out the ColdBox Elixir documentation for further information: https://github.com/ColdBox/elixir/wiki

Quick Installation

Install the template dependencies by running the install command:

box install

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

box server start

Code to your liking and enjoy!

ColdBox Elixir Installation

You will find a package.json and a webpack.config.js in the root of this template. The package.json is where you will find the UI dependencies and the webpack.config.js is used to tell Elixir which assets to compile and combine. The resources folder contains all the UI assets for your application:

+ resources
	+ /js
	+ /saas
	+ /css

You can install ColdBox elixir and the UI dependencies by typing:

npm install

Then a node_modules folder will be created will all the needed dependencies for ColdBox Elixir. You can then just run npm run dev for asset combination and management for development. Run npm run prod so it can do minification of assets for production. Run npm run watch for starting watchers in all ColdBox convetions for changes and asset recompilation.

Dockerfile

We have included a build/Dockerfile so you can build docker containers from your source code. We have also added two scripts in your box.json so you can build the docker image and run the docker image using our CommandBox Docker containers.

# Build a docker **container**
run-script docker:build
# Run the container
run-script docker:run
# Go into the container's bash prompt
run-script docker:bash

Docker Compose Stack

We have included a build/docker-compose.yaml stack that can be used to run the application in a container alongside a database. We have included support for MySQL, PostgreSQL and MSSQL. We have also included the run-script docker:stack command you so you compose the stack up or down.

run-script docker:stack up
run-script docker:stack down

VSCode Helpers

We have included two vscode helpers for you:

  • .vscode/settings.json - Includes introspection helpers for ColdBox and TestBox
  • .vscode/tasks.json - Tasks to assist in running a Test Bundle and a CommandBox Task

We have included two custom tasks:

  • Run CommandBox Task - Open a CommandBox task and run it
  • Run TestBox Bundle - Open the bundle you want to test and then run it

To run the custom tasks open the command palette and choose Tasks: Run Build Task or the shortcut โ‡งโŒ˜B

Welcome to ColdBox

ColdBox Hierarchical MVC is the de-facto enterprise-level HMVC framework for ColdFusion (CFML) developers. It's professionally backed, conventions-based, modular, highly extensible, and productive. Getting started with ColdBox is quick and painless. ColdBox takes the pain out of development by giving you a standardized methodology for modern ColdFusion (CFML) development with features such as:

Learning ColdBox

ColdBox is the defacto standard for building modern ColdFusion (CFML) applications. It has the most extensive documentation of all modern web application frameworks.

If you don't like reading so much, then you can try our video learning platform: CFCasts (www.cfcasts.com)

ColdBox Sponsors

ColdBox is a professional open-source project and it is completely funded by the community and Ortus Solutions, Corp. Ortus Patreons get many benefits like a cfcasts account, a FORGEBOX Pro account and so much more. If you are interested in becoming a sponsor, please visit our patronage page: https://patreon.com/ortussolutions

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

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.


Unreleased

7.2.0 - 2023-05-19

Fixed

  • Added allowPublicKeyRetrieval=true to the db connection string
  • Added missing bundle name and version in .cfconfig.json and .env.example

[6.15.0] => 2023-MAR-20

Added

  • Changelog Tracking
  • Github actions for auto building
  • Latest ColdBox standards
  • UI Updates
  • vscode introspection and helpers
  • Docker build and compose consolidation to the build folder
  • Cleanup of tests to new standards
  • ESLint rules
  • Added routing conventions to make it easier for the cli to add routes.

$ box install cbtemplate-elixir

No collaborators yet.
     
  • {{ getFullDate("2016-07-26T08:01:51Z") }}
  • {{ getFullDate("2023-05-19T21:32:19Z") }}
  • 7,720
  • 15,896