This template is a fork of the default template but based on Vite as your asset manager. It also leverages VueJS and Tailwind.
Install the template dependencies by running the install command:
box installThis will setup all the needed dependencies for each application template. You can then start the embedded server:
box server startCode to your liking and enjoy!
You will find a package.json and a vite.config.js in the root of this template. The package.json is where you will find the UI dependencies and the vite.config.js is used to tell Vite which assets to compile and combine. The resources folder contains all the UI assets for your application:
+ resources
+ /js
+ /cssYou can install the UI dependencies by typing:
npm installThen a node_modules folder will be created will all the needed dependencies. You can then just run npm run dev for asset combination and starting up a vite server. Run npm run build so it can do minification of assets for production.
If your project relies on Java third-party dependencies, you can use the included Maven pom.xml file in the root. You can add your dependencies there and then run the mvn install command to download them into the lib/ folder. The BoxLang application will automatically class load all the jars in that folder for you! You can also use the mvn clean command to remove all the jars.
You can find Java dependencies here: https://central.sonatype.com/. Just grab the Maven coordinates and add them to your pom.xml file.
We have included a docker/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:bashWe have included a docker/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 downWe 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 itRun 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
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:
- Conventions instead of configuration
- Modern URL routing
- RESTFul APIs
- A hierarchical approach to MVC using ColdBox Modules
- Event-driven programming
- Async and Parallel programming constructs
- Integration & Unit Testing
- Included dependency injection
- Caching engine and API
- Logging engine
- An extensive eco-system
- Much More
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 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
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12