DigitalOcean App
Deploy a modern, cloud-native BoxLang application to DigitalOcean App Platform in minutes!
π₯ BoxLang Starter for DigitalOcean
Deploy a modern, cloud-native BoxLang application to DigitalOcean App Platform in minutes!
This starter kit provides everything you need to run a production-ready BoxLang application on DigitalOcean's App Platform. Built with the powerful BoxLang MiniServer, this template showcases BoxLang's modern language features, beautiful UI components, and seamless cloud deployment workflow.
β¨ What You Get:
π Pre-configured BoxLang MiniServer with optimal settings
π¨ Beautiful, responsive landing page with Phosphor icons
π³ Multi-stage Docker build for efficient deployments
β‘ Auto-compile and hot-reload in development
π Automatic redeployment on code changes (when forked)
π¦ Ready for DigitalOcean App Platform one-click deployment
β οΈ Note: Following these steps may result in charges for the use of DigitalOcean services.
π Requirements
A DigitalOcean account. If you don't have one, sign up here.
(Optional) A GitHub account to fork this repository for automatic deployments.
π Deploy the App
Click the button below to deploy this app to DigitalOcean App Platform. If you're not logged in, you'll be prompted to authenticate.
π΄ Fork for Automatic Redeployments (Recommended)
The one-click deploy button above deploys directly from our template repository, which means you won't get automatic redeployments when you make changes. We recommend forking this repository to your own GitHub account first.
To fork this repository:
Navigate to the repository on GitHub
Click the Fork button in the top-right corner
Follow the on-screen instructions (Learn more about forking)
To deploy your forked repository:
Visit the DigitalOcean Apps control panel
Click Create App
Under Service Provider, select GitHub
Under Repository, select your forked repo (e.g.,
<your-username>/boxlang-starter-digitalocean)Ensure Branch is set to
mainand Autodeploy is checked βClick Next
βοΈ Configuration Steps
After clicking the deploy button or connecting your forked repository:
Configure your app (Optional)
Add environment variables
Configure HTTP routes
Add databases or other services
For this starter, default settings work perfectly!
Name and Region
Provide a name for your app
Select your preferred deployment region
App Platform automatically selects the closest region
All apps are routed through a global CDN for optimal performance π
Review Settings
Leave default fields as-is
Click Next
Launch Your App π
Review your plan (Basic/Pro)
Confirm the number of containers
Click Launch Basic/Pro App
π Monitor Your Deployment
After launching, you'll see a "Building..." progress indicator. Click View Logs to watch the build process in real-time.
The build typically takes 2-3 minutes. Once complete:
Click the Live App link in the header
Your BoxLang application will open in a new tab! π
βοΈ Make Changes to Your App
If you forked the repository, you can now customize your BoxLang application:
Make changes to files in your forked repo (e.g., edit
/app/index.bxm)Commit and push to the
mainbranchApp Platform automatically redeploys with zero downtime β‘
No manual steps requiredβjust push and watch it deploy!
π Learn More
Want to dive deeper into App Platform features?
ποΈ Delete the App
When you're done testing or no longer need this application:
Visit the Apps control panel
Select your app
Go to the Settings tab
Click Destroy
Confirm the deletion
β οΈ Important: If you don't delete your app, charges for DigitalOcean services will continue to accrue.
π₯ BoxLang MiniServer App
This starter uses the BoxLang MiniServerβa lightweight, embedded web server perfect for containerized deployments and rapid development.
What's Included
π¦ Application Structure:
βοΈ MiniServer Configuration:
Port: 8080 (production), 9090 (local development)
Host: 0.0.0.0 (container), 127.0.0.1 (local)
Web Root:
./appdirectoryAuto-compile: Enabled for BoxLang files
Health Check: Built-in health endpoint
URL Rewrites: Enabled with fallback to
index.bxm
π Running Locally
Want to test your BoxLang app on your local machine? Here's how:
Prerequisites
Option 1: Run with Docker (Recommended)
Hot Reload Development Mode:
Option 2: Run with BoxLang CLI
The MiniServer will automatically read miniserver.json and start with all configured settings.
π§ Customization Tips
Update the Port:
Edit miniserver.json to change the default port:
Environment Variables:
Set environment-specific configurations in boxlang.json:
Add BoxLang Modules:
Install community modules using the BoxLang CLI:
π Additional Resources
π¬ Need Help?
Community: Join the BoxLang Community
Documentation: BoxLang Docs
Professional Support: BoxLang +/++
Happy Coding with BoxLang! π₯
Last updated
Was this helpful?
