Skip to content

springgen-dev/springgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SpringGen β€” Generate Spring Boot Backends in Minutes πŸš€ npm License: MIT

Generate production-ready Spring Boot backends instantly β€” Authentication, Database, Docker, CI/CD, and AWS EC2 deployment included.

πŸ‘‰ Try Free via CLI β€’ πŸš€ Upgrade to Pro


What is SpringGen?

Every new backend service starts the same way β€” same structure, auth setup, database config, security hardening, Docker, and CI/CD pipeline. Most developers rebuild this from scratch or copy-paste from a previous project every single time.

SpringGen is built around that repeated workflow. Whether you are a freelancer spinning up a new client backend, a founder building an MVP, or a developer starting another microservice β€” run the CLI or web UI, get a consistent production-ready backend, and start writing business logic.

No copy-pasting. No forgotten configs. No "how did I set this up last time."

SpringGen uses a deterministic template/module engine to assemble tested Spring Boot project structures, configurations, and production-ready components.


How is SpringGen Different?

vs Spring Initializr

Spring Initializr gives you a project foundation β€” dependencies, build files, and a basic application entry point.

SpringGen starts where Initializr stops:

  • Layered architecture with controllers, services, repositories
  • DTO patterns and global exception handling
  • Database configuration
  • Authentication scaffolding (JWT, OAuth2)
  • Security hardening
  • Docker, CI/CD, and AWS deployment configuration

vs JHipster

JHipster is a full-stack generator β€” frontend, backend, and ongoing project management through its ecosystem. Powerful if you want a complete application platform with built-in conventions.

SpringGen is backend-only and disappears after generation. No frontend opinions, no generator runtime dependencies left in your project, no new ecosystem to learn. Just clean, standard Spring Boot code you recognize and own from day one.

SpringGen sits between Initializr and JHipster β€” more structure than one, less ecosystem than the other.


Who is SpringGen For?

SpringGen is useful for developers who know Spring Boot but want to move faster.

Ideal for:

  • Backend developers building SaaS products
  • Freelancers starting new client projects
  • Startup founders creating MVP backends
  • Engineers building multiple microservices
  • Developers who want consistent project structure across projects
  • Java/Spring developers who prefer writing business logic over repeating setup

SpringGen may not be ideal for:

  • Developers looking for a Spring Boot learning tutorial
  • Teams with existing internal platform templates
  • Engineers who prefer manually configuring every project from scratch
  • Projects requiring highly customized enterprise architecture from day one

πŸš€ SpringGen Pro β€” Production Ready

Stop rebuilding the same production setup for every Spring Boot project.

SpringGen Pro unlocks unlimited production-ready Spring Boot backend generation β€” create as many projects as you need with authentication, database, security, deployment, and DevOps configuration ready to go.

Pay once. Generate unlimited production-ready Spring Boot projects.

βš™οΈ Interactive Project Generator UI

Choose:

  • Package name
  • Database (MySQL, PostgreSQL)
  • Docker setup
  • CI/CD
  • Authentication (OAuth2 + refresh tokens)
  • Logging
  • AWS deployment options

πŸ” OAuth2 + Refresh Tokens

Generate production-ready Spring Security:

  • Google OAuth2 login
  • GitHub OAuth2 login
  • JWT access tokens
  • Refresh token flow

🐳 Production Docker Setup

Includes:

  • Dockerfile
  • docker-compose.yml
  • docker-compose.prod.yml
  • Environment configuration
  • Health checks

πŸš€ CI/CD β†’ AWS EC2 Deploy

Push code.

GitHub Actions automatically:

  • Builds your application
  • Creates production configuration
  • Connects to EC2
  • Deploys your Docker application

πŸ–₯️ Generated EC2 Deploy Script

Deploy anytime with a ready-to-use script.

Generated:

scripts/deploy-ec2.sh

Handles:

  • Docker builds
  • Application updates
  • Container restarts

Use it through GitHub Actions or run manually on EC2.

πŸ›‘οΈ Security Hardening

Includes:

  • CORS configuration
  • Secure headers
  • Request filtering
  • Validation
  • Production security defaults

πŸ“Š Logging & Observability

Includes:

  • Request logging
  • Structured logs
  • Production-ready logging configuration

AWS EC2 Deployment Automation

SpringGen EC2 Deployment

SpringGen Pro supports two deployment workflows:

Automated Deployment

GitHub Secrets
   ↓
Git Push
   ↓
GitHub Actions
   ↓
EC2
   ↓
Docker Application Running

Best for production workflows.

Manual Deployment

Use the generated deploy script on EC2

# 1. One-time setup
nano .env.prod

# 2. Deploy anytime
git pull origin main
./scripts/deploy-ec2.sh

Best for manual releases, testing, and full control over deployments.


Unlock SpringGen Pro

Generate production-ready Spring Boot projects in minutes.

πŸ‘‰ https://app.springgen.dev

$29 one-time launch pricing


Starter vs Pro

Feature Starter Pro
Price Free $29 launch pricing
Spring Boot structure βœ… βœ…
Controller / Service / Repository layers βœ… βœ…
DTO structure βœ… βœ…
Global exception handling βœ… βœ…
JWT authentication scaffold βœ… βœ…
Database configuration βœ… βœ…
Dockerfile βœ… βœ…
Docker Compose local setup βœ… βœ…
Basic GitHub Actions CI βœ… βœ…
OAuth2 authentication ❌ βœ…
Refresh token flow ❌ βœ…
Production configuration ❌ βœ…
AWS EC2 deployment automation ❌ βœ…
Full CI/CD deployment workflow ❌ βœ…
Logging and observability setup ❌ βœ…
Security hardening ❌ βœ…

Try SpringGen Free (Starter CLI)

The Starter edition is free and available through the CLI.

It is designed for:

  • Local development
  • MVP projects
  • Backend scaffolding
  • Learning project structure
  • Quickly starting Spring Boot APIs

Install

npm install -g springgen

Generate a Project

springgen init my-app --db=postgres

Supported Databases

--db=postgres
--db=mysql
--db=mongo

Run the Generated Project

Configure your environment β€” update .env values before running.

cd my-app
./gradlew bootRun

Or run with Docker:

docker compose up --build

The application starts at:

http://localhost:8080

How It Works

CLI or UI sends project configuration
↓
SpringGen backend validates requested tier
↓
Generator engine builds project dynamically
↓
Starter or Pro modules are applied
↓
ZIP project is generated
↓
User downloads and runs the project

Example Generated Project Structure

my-app/
β”œβ”€β”€ src/main/java/com/example/
β”‚   β”œβ”€β”€ controller/
β”‚   β”œβ”€β”€ service/
β”‚   β”œβ”€β”€ repository/
β”‚   β”œβ”€β”€ dto/
β”‚   β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ security/
β”‚   └── Application.java
β”‚
β”œβ”€β”€ src/main/resources/
β”‚   β”œβ”€β”€ application.yml
β”‚   └── application-prod.yml          # Pro
β”‚
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ docker-compose.prod.yml           # Pro
β”‚
β”œβ”€β”€ .github/workflows/
β”‚   β”œβ”€β”€ ci.yml
β”‚   └── cd.yml                        # Pro
β”‚
β”œβ”€β”€ scripts/
β”‚   └── deploy-ec2.sh                 # Pro
β”‚
β”œβ”€β”€ .env
└── .env.prod                         # Pro

Screenshots

Generate Starter Projects

Starter Generator

Generate free Spring Boot Starter projects with:

  • JWT scaffold
  • Docker setup
  • Database configuration
  • Basic CI

Generate Pro Projects

Pro Generator

Generate production-ready Spring Boot projects with:

  • OAuth2 authentication
  • Refresh tokens
  • AWS deployment automation
  • CI/CD
  • Security hardening

Starter Generated Output

Starter Output


Pro Generated Output

Pro Output


Authentication Notes

Starter includes a lightweight JWT scaffold for development and demonstration purposes.

Pro includes production-focused authentication support with:

  • OAuth2 login
  • JWT access tokens
  • Refresh tokens
  • Persistent user and token entities

For more details, see:

docs/JWT-SCAFFOLD.md
docs/PRO-FEATURES.md

Documentation

Available documentation:

docs/
β”œβ”€β”€ CLI-USAGE.md
β”œβ”€β”€ STARTER-JWT-SCAFFOLD.md
β”œβ”€β”€ STARTER-DOCKER-SETUP.md
β”œβ”€β”€ PRO-FEATURES.md
└── FAQ.md

Pro Documentation

SpringGen Pro generated projects include additional production guides:

  • AWS EC2 deployment guide
  • OAuth2 + refresh token setup
  • Production configuration guide
  • CI/CD deployment instructions

Available inside generated Pro projects.


Examples

Example resources:

examples/
β”œβ”€β”€ screenshots/
β”‚
β”‚   # UI
β”‚   β”œβ”€β”€ starter-generator-ui.png
β”‚   β”œβ”€β”€ pro-generator-ui.png
β”‚
β”‚   # Generated outputs
β”‚   β”œβ”€β”€ generated-starter-project.png
β”‚   └── generated-pro-project.png
β”‚
└── generated-structure.md

Business Model

SpringGen provides a free Starter generator and a paid Pro upgrade.

  • Starter is free.
  • Pro is a one-time purchase.
  • SpringGen does not provide consulting, freelancing, or custom software development services.
  • Pro access unlocks premade automated project generation features.

Roadmap

Planned future improvements:

  • IntelliJ IDEA plugin
  • Microservices starter
  • Redis module
  • Additional OAuth providers
  • Team features
  • More deployment targets
  • More database options
  • Advanced observability modules

Support

For support,

contact: πŸ“§ support@springgen.dev

Website: 🌐 https://app.springgen.dev


Repository Scope

This public repository contains SpringGen documentation, examples, screenshots, and preview versions of the Starter CLI/npm client.

The preview CLI projects are provided for transparency and local exploration.

The production SpringGen backend, web application, billing integration, deployment infrastructure, Pro templates, and commercial generation modules are maintained privately.

The published npm package and hosted SpringGen platform are operated from the private production repository.


License

The public SpringGen documentation, examples, and preview CLI clients are released under the MIT License.

SpringGen Pro templates, premium modules, deployment infrastructure, backend services, and commercial generation features are proprietary and are not included under this license.

See:

LICENSE


⭐ Support the Project

If this helped you:

  • Star this repo
  • Share with other developers

One-Line Summary

Generate Spring Boot backends instantly β€” from local setup to production deployment foundations.