https://github.com/musooo/springup
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.
https://github.com/musooo/springup
automation code-generation java open-source project-setup rust spring-boot sql utilities
Last synced: 15 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/musooo/springup
- Owner: Musooo
- License: gpl-3.0
- Created: 2025-03-09T14:25:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-11T11:11:48.000Z (10 months ago)
- Last Synced: 2025-03-11T12:24:06.403Z (10 months ago)
- Topics: automation, code-generation, java, open-source, project-setup, rust, spring-boot, sql, utilities
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```sh
spb-utils-rust -a
```
- `-d`: Creates the necessary directories for the project structure based on the `groupId` and `artifactId` from the configuration file.
```sh
spb-utils-rust -d
```
- `-s `: Manually sets the `groupId` and `artifactId` in the configuration file.
```sh
spb-utils-rust -s com.example myartifact
```
- `-f [-t ]`: Creates model files with SQL attributes. If no SQL file is specified, it defaults to `init.sql`.
```sh
spb-utils-rust -f MyModel
spb-utils-rust -f MyModel -t custom.sql
```
- `-f -dbs `: Creates model files with SQL attributes by connecting to the specified database.
```sh
spb-utils-rust -f MyModel -dbs username password host database
```
#### Examples
- Display help information:
```sh
spb-utils-rust -h
```
- Parse `pom.xml` and set `groupId` and `artifactId`:
```sh
spb-utils-rust -a
```
- Create project directories:
```sh
spb-utils-rust -d
```
- Manually set `groupId` and `artifactId`:
```sh
spb-utils-rust -s com.example myartifact
```
- Create model files with SQL attributes from `init.sql`:
```sh
spb-utils-rust -f MyModel
```
- Create model files with SQL attributes from a custom SQL file:
```sh
spb-utils-rust -f MyModel -t custom.sql
```
- Create model files with SQL attributes by connecting to the specified database:
```sh
spb-utils-rust -f MyModel -dbs username password localhost:3306 database
```