1 unstable release
| 0.1.0 | Oct 2, 2025 |
|---|
#1541 in Command line utilities
22KB
125 lines
cargo-bloom-web
A CLI tool for quickly initializing Bloom web applications with optional Docker and MySQL database support.
Installation
Install via Cargo:
cargo install cargo-bloom-web
Usage
Initialize a new Bloom project
cargo bloom-web init
or simply:
cargo init
This will:
- Clone the Bloom framework template
- Optionally set up Docker configuration (production + development)
- Optionally configure MySQL database with Docker
- Create all necessary Docker files and configurations
Check version
cargo bloom-web version
Features
- 🚀 Quick project initialization
- 🐳 Docker support with production and development configurations
- 🗄️ Optional MySQL database setup
- 📦 Hot reloading for development
- ⚡ Optimized production builds
- 🎯 Interactive CLI with arrow key navigation
Docker Services
When Docker is enabled, the following services are created:
- bloom-app - Production service with optimized build
- bloom-app-dev - Development service with hot reloading
- mysql - MySQL 8.0 database (if database option is selected)
Quick Start
- Install the CLI tool:
cargo install cargo-bloom-web - Create a new project:
cargo bloom-web init - Navigate to the project:
cd bloom-app - Start development:
docker compose up bloom-app-dev --build
Repository
- Framework: Bloom
- Template: bloom-initializr
License
Licensed under either of
- Apache License, Version 2.0
- MIT license
at your option.
Dependencies
~6–20MB
~221K SLoC