
Topics:
ColdBox and HMVC architecture overview
ColdBox Platform (ColdBox, CacheBox, LogBox, TestBox, ForgeBox) ● Installing CommandBox CLI and creating applications
Folder structure and conventions
Event handlers fundamentals
Handler conventions and locations
Actions and return types
Request Context (RC/PRC) collections
Working with RC (Request Collection) and PRC (Private Request Collection)
URL routing basics and custom routes
Handler inheritance and composition
Hands-on Exercise:
Install CommandBox and create ColdBox application
Create multiple handlers with various actions
Pass data between handlers using RC and PRC
Implement a simple CRUD interface
Create custom URL routes
Build a multi-handler workflow
Navigate and understand the ColdBox folder structure
Topics:
View conventions and structure
Creating and rendering views
Layout fundamentals and nested layouts
View rendering methods and options
Partial views and view composition
Creating and organizing models
Model conventions and best practices
Hands-on Exercise:
Build multi-page application with shared layouts
Create reusable partial views
Build complex pages with nested layouts and partials
Create service models for business logic
Topics:
TestBox testing framework overview (Ortus Solutions)
TestBox architecture and philosophy
BDD (Behavior-Driven Development) vs TDD (Test-Driven Development)
Unit testing models and services
Integration testing handlers and workflows
Test structure and organization (suites and specs)
Test fixtures and data providers
Assertions, expectations, and matchers
MockBox for mocking
Creating mocks
Testing with mocked dependencies
HTTP response testing
Test-driven development workflow
Hands-on Exercise:
Write comprehensive unit tests
Implement BDD-style test suites
Set up test data and fixtures
Test various scenarios and edge cases
Mock complex dependencies with MockBox
Create mocks for database and external services
Test handlers with mocked models
Implement TDD for a new feature
Organize tests into logical suites
Topics:
ColdBox.cfc configuration file structure
Application settings and environment-specific configs
Custom settings and datasource configuration
Environment detection and variables
Introduction to Interceptors (AOP)
ColdBox interception points
Creating custom interceptors
RESTful handler development
HTTP verbs and resourceful routing
Response formats (JSON, XML, custom)
Status codes and error handling
Request/Response validation
API authentication strategies (JWT, OAuth, API Keys)
Authorization and role-based access control
Testing REST APIs with TestBox
Testing authentication and authorization flows
Hands-on Exercise:
Create comprehensive ColdBox.cfc configuration
Set up development, staging, and production configs
Implement environment variable usage
Create a security interceptor for authentication
Build complete RESTful API for CRUD operations
Implement proper HTTP status codes
Create consistent error responses
Implement JWT authentication for API endpoints
Write comprehensive API tests with TestBox
Test authenticated and authorized endpoints
Mock authentication services for testing
Topics:
Introduction to awscfml library
AWS credentials and configuration in ColdBox
AWS SDK integration patterns
Environment variables and AWS secrets management
EC2 (Elastic Compute Cloud) Integration:
Managing EC2 instances programmatically
Instance lifecycle operations (start, stop, terminate)
Querying instance metadata and status
Auto-scaling integration concepts
Security groups and key pairs management
EC2 tags and resource organization
KMS (Key Management Service) Integration:
Creating and managing encryption keys
Encrypting and decrypting data
Key rotation and policies
Envelope encryption patterns
Securing sensitive application data
Error handling and retry strategies for AWS services
AWS best practices and cost optimization
Testing AWS integrations with TestBox and MockBox
Hands-on Exercise:
Install and configure awscfml in ColdBox application
Set up AWS credentials securely using environment variables
Create service models for EC2 operations
Implement instance management functionality (list, start, stop instances)
Query and display EC2 instance information
Build instance monitoring dashboard
Implement KMS encryption/decryption in your application
Create secure data storage using KMS
Encrypt sensitive user data with envelope encryption
This intensive training program covers the ColdBox HMVC framework essentials, AWS integration with awscfml, and comprehensive TestBox testing in 5 focused sessions. Sessions are structured with hands-on exercises and real-world applications.
Key Features of This Intensive Program:
TestBox Mastery
Dedicated full session (3 hours) to TestBox
Comprehensive coverage of unit and integration testing
MockBox for mocking dependencies and AWS services
BDD/TDD methodologies
Code coverage analysis
Real-world testing scenarios
Complete AWS Coverage
Full session dedicated to EC2 and KMS
Gain knowledge in how to work with all supported AWS services
Practical implementations with awscfml library
Security-first approach with KMS encryption
Instance management with EC2
Testing strategies for cloud integrations
ColdBox Essentials
Complete coverage of handlers, routing, and request flow
Views, layouts, and rendering patterns
Model-driven development
RESTful API development
Authentication and security
Configuration management
Hands-On Learning
Every session includes substantial hands-on exercises
Build real-world applications
Progressive complexity
Immediate application of concepts
Complete working examples
Learning Outcomes Upon completing this training, participants will be able to:
Build ColdBox Applications
Create event handlers with proper routing
Implement views with layouts and partials
Develop model-driven service layers
Manage application configuration
Develop RESTful APIs
Build complete REST APIs with proper HTTP methods
Implement JWT authentication and authorization
Handle errors and status codes correctly
Configure CORS and API versioning
Master TestBox Testing
Write comprehensive unit and integration tests
Use MockBox for mocking dependencies
Achieve high code coverage
Implement TDD/BDD workflows
Test APIs and authentication flows
Integrate AWS Services
Manage EC2 instances programmatically
Implement encryption with KMS
Test AWS integrations effectively
Handle AWS errors and retries
Follow Best Practices
Separate concerns properly (handlers, models, views)
Write maintainable and testable code
Implement security best practices
Configure applications for different environments