sprygen new
Scaffold an entirely new Spring Boot 3+ project.
Run sprygen new <project-name> in your terminal and answer the interactive prompts.
Interactive Configuration
You will configure:
- Java Version: 17 or 21
- Build Tool: Maven or Gradle
- Database: MySQL, PostgreSQL, or H2 (in-memory)
- Auth Strategy: Stateless REST (JWT) or Stateful Web (Session)
- Project Type: REST API (Backend Only) or Fullstack (Next.js 15 Monorepo)
- Modules: Flyway Database Migrations, Swagger/OpenAPI, Spring Mail, Logback
What Happens Under the Hood?
Upon completion, Sprygen:
- Downloads the base project directly from Spring Initializr.
- Injects custom architecture patterns and dependencies.
- Writes out all foundational config, security filtering logic, and global CORS configurations.
- Generates a base
Userentity stack configured for Role-Based Access Control.
Usage:
sprygen new my-awesome-backend