npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sboot-cli

v1.0.0

Published

CLI tool for generating Spring Boot projects following Screaming Architecture patterns

Downloads

69

Readme

🚀 Sboot CLI

A powerful CLI tool for Spring Boot that supercharges your development workflow by generating clean, standardized code following Screaming and Clean Architecture patterns.

npm version License: MIT

📋 Features

  • 🏗️ Modular Structure: Automatically creates clean, organized module structures
  • 🎯 Smart Generation: Creates entities, repositories, services, and controllers
  • 🧱 Clean Architecture: Follows Screaming Architecture principles out of the box
  • Full Generation: Generate complete resource stack with a single command
  • 🎨 Customizable: Flexible configuration to match your project needs
  • 💻 Interactive: User-friendly CLI interface with intuitive prompts

🛠️ Installation

npm install -g sboot-cli

📚 Usage

Module Creation

Create a new module in your Spring Boot project:

sboot create module users

Resource Creation

Generate individual resources with interactive prompts:

sboot create resource

Or specify all details directly:

# Create an entity
sboot create resource User --module users --type entity

# Create a repository
sboot create resource User --module users --type repository

# Create a service
sboot create resource User --module users --type service

# Create a controller
sboot create resource User --module users --type controller

⚡ Quick Generation

Generate a complete resource stack (entity, repository, service, and controller) in one go:

sboot create resource User --module users --full

⚙️ Configuration

# View current configuration
sboot config -v

# Initialize configuration
sboot config --init

# Reset to defaults
sboot config --reset

📁 Generated Structure

module/
├── application/
│   ├── mappers/
│   └── services/
│       ├── UserService.java
│       └── implementations/
│           └── UserServiceImpl.java
├── domain/
│   ├── entities/
│   │   └── User.java
│   └── enums/
└── infrastructure/
    ├── controllers/
    │   └── UserController.java
    ├── repositories/
    │   └── UserRepository.java
    └── dtos/

🎯 Command Options

Global Options

  • -v, --verbose: Show detailed output
  • -h, --help: Display help for command

Create Command

sboot create [options] <type> [name]

Options:

  • -m, --module <module>: Specify module name
  • -t, --type <type>: Resource type (entity, repository, service, controller)
  • -f, --full: Generate complete resource stack

Config Command

sboot config [options]

Options:

  • -v, --view: View current configuration
  • -r, --reset: Reset to default configuration
  • -i, --init: Initialize configuration

🔮 Upcoming Features

🎯 Coming Soon

  • MapStruct Mappers: Smart generation of MapStruct mappers with:

    • Automatic entity-to-DTO mappings
    • Bidirectional mapping support
    • Spring component model integration
    • Custom mapping methods
  • Enhanced DTO Generation:

    • Flexible DTO creation (Create, Response, or custom)
    • Configurable location (application or infrastructure layer)
    • Lombok integration
    • Smart field mapping from entities
  • Smart Enum Support:

    • Display name pattern support
    • Lombok integration
    • Custom enum patterns
    • Value handling support

🌟 Future Enhancements

  • Project scaffolding and initialization
  • Custom template support
  • Integration with Spring Security
  • OpenAPI documentation generation
  • Unit test generation
  • Custom annotation support

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check our issues page.

📝 License

This project is MIT licensed.