Interactive Spring Boot project generator (Java 17/21, Docker, Swagger, modular)
Project description
Spring Boot Generator
Spring Boot Generator is an interactive CLI tool that generates production-ready Spring Boot applications in seconds.
It helps developers bootstrap clean, modular, Docker-ready Java projects following industry best practices.
Features
- Interactive command-line interface
- Java 17 and 21 support
- Modular and scalable project structure
- Clean layered architecture (Controller / Service / Repository)
- Multi-database support
- Docker & Docker Compose ready
- Swagger UI & ReDoc documentation
- Spring Data JPA + Hibernate
- Flyway database migrations
- MapStruct mapper configuration
- Production-grade
pom.xml
🧱 Generated Project Structure
com.example.demo
├── Application.java
├── config
├── modules
│ └── user
│ ├── controller
│ ├── service
│ │ └── impl
│ ├── repository
│ ├── dto
│ ├── entity
│ └── mapper
└── resources
├── application.yml
└── db
└── migration
Supported Databases
- PostgreSQL
- MySQL
- MariaDB
- H2 (in-memory)
Each option includes:
- JDBC driver
- Hibernate configuration
- Docker service (if enabled)
📦 Installation
pip install springboot-generator
▶ Usage
springboot-generator
The CLI will guide you through:
- Base package name
- Java version
- Database selection
- Docker enablement
- Swagger / ReDoc configuration
- Module creation
🐳 Docker Usage
cd your-project
docker compose up --build
Access:
- API: http://localhost:8080
- Swagger UI: http://localhost:8080/swagger-ui.html
- ReDoc: http://localhost:8080/redoc.html
- OpenAPI: http://localhost:8080/v3/api-docs
Database & Migrations
Flyway is enabled by default.
src/main/resources/db/migration
Windows Users
If the command is not recognized:
'springboot-generator' is not recognized
Add to PATH:
C:\Users\<USERNAME>\AppData\Roaming\Python\Python3X\Scripts
Or run:
python -m springboot_generator.main
Requirements
- Python ≥ 3.9
- Java ≥ 17
- Maven ≥ 3.6
- Docker (optional)
Contributing
Contributions and feedback are welcome.
License
Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file springboot_generator-0.3.0.tar.gz.
File metadata
- Download URL: springboot_generator-0.3.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
981b16a0f577270fcfcf1e73bfbb4df6124c43e93bf8b6822e3b23623520a920
|
|
| MD5 |
3026c01c1c9464265014d0ec8265f8ea
|
|
| BLAKE2b-256 |
24e3683bb59d7071441b44e1e379ba71743da119174c8be8e89e9f1732ee0113
|
File details
Details for the file springboot_generator-0.3.0-py3-none-any.whl.
File metadata
- Download URL: springboot_generator-0.3.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcbc872b21c97fa0aa3392eae862380cfcbbb75bc1b99ade2cb0ba1d296b27f4
|
|
| MD5 |
08bf80ef6ac7f7573761d82315c6d4aa
|
|
| BLAKE2b-256 |
7bd6aaa3c755e9eeb3dc782ba75b857dd96c204b20a160d7285f2697816a5eb8
|