Skip to content

SpringUp is a utility tool designed to streamline the setup and configuration of Spring Boot projects using Rust. This tool automates various tasks such as setting up project directories, creating Java classes, and managing project configurations.

License

Notifications You must be signed in to change notification settings

Musooo/SpringUp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringUp

Features that should work:

[X] Manually setting the groupId and artifactId  
[X] Automatically setting the groupId and artifactId from the pom  
[X] Creating the controller, service, model, and repository directories  
[X] Creating the model, service, and repository classes with basic template given the name  
[X] Creating the model with SQL attributes from the .sql file
[X] Creating the model with SQL attributes by connecting to the database (TODO make it dynamic)

Usage

Commands

  • -a: Parses the pom.xml file and sets the groupId and artifactId from it.

    spb-utils-rust -a
  • -d: Creates the necessary directories for the project structure based on the groupId and artifactId from the configuration file.

    spb-utils-rust -d
  • -s <groupId> <artifactId>: Manually sets the groupId and artifactId in the configuration file.

    spb-utils-rust -s com.example myartifact
  • -f <name> [-t <sql_file>]: Creates model files with SQL attributes. If no SQL file is specified, it defaults to init.sql.

    spb-utils-rust -f MyModel
    spb-utils-rust -f MyModel -t custom.sql
  • -f <name> -dbs <username> <password> <host> <database>: Creates model files with SQL attributes by connecting to the specified database.

    spb-utils-rust -f MyModel -dbs username password host database

Examples

  • Display help information:

    spb-utils-rust -h
  • Parse pom.xml and set groupId and artifactId:

    spb-utils-rust -a
  • Create project directories:

    spb-utils-rust -d
  • Manually set groupId and artifactId:

    spb-utils-rust -s com.example myartifact
  • Create model files with SQL attributes from init.sql:

    spb-utils-rust -f MyModel
  • Create model files with SQL attributes from a custom SQL file:

    spb-utils-rust -f MyModel -t custom.sql
  • Create model files with SQL attributes by connecting to the specified database:

    spb-utils-rust -f MyModel -dbs username password localhost:3306 database

About

SpringUp is a utility tool designed to streamline the setup and configuration of Spring Boot projects using Rust. This tool automates various tasks such as setting up project directories, creating Java classes, and managing project configurations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages