Skip to content
πŸ› οΈ A tool to generate spring boot applicatio
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
action
.gitignore
History.md
LICENSE
README.md
package-lock.json
package.json
venus

README.md

venus-init

Venus-init is the tool for spring application development. You can start a Spring Boot application with a single command.

Install

npm install venus-init

Usage

Just type the code below and follow the notice until finish the initialization.

venus init

Or you can type like this.

venus i

Note

You need to copy all the files in the project that createad by cli into another project

Example

Below is the structure of a demo project that created by the cli.

.
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ api
β”‚Β Β  β”œβ”€β”€ pom.xml
β”‚Β Β  └── src
β”‚Β Β      └── main
β”‚Β Β          β”œβ”€β”€ java
β”‚Β Β          β”‚Β Β  └── com
β”‚Β Β          β”‚Β Β      └── detectivehlh
β”‚Β Β          β”‚Β Β          └── demo
β”‚Β Β          β”‚Β Β              └── api
β”‚Β Β          β”‚Β Β                  β”œβ”€β”€ Application.java
β”‚Β Β          β”‚Β Β                  β”œβ”€β”€ config
β”‚Β Β          β”‚Β Β                  β”‚Β Β  β”œβ”€β”€ DbConfig.java
β”‚Β Β          β”‚Β Β                  β”‚Β Β  └── SwaggerConfig.java
β”‚Β Β          β”‚Β Β                  β”œβ”€β”€ controller
β”‚Β Β          β”‚Β Β                  β”‚Β Β  └── HelloController.java
β”‚Β Β          β”‚Β Β                  β”œβ”€β”€ dao
β”‚Β Β          β”‚Β Β                  β”‚Β Β  └── HelloMapper.java
β”‚Β Β          β”‚Β Β                  β”œβ”€β”€ dto
β”‚Β Β          β”‚Β Β                  β”‚Β Β  └── HelloDTO.java
β”‚Β Β          β”‚Β Β                  β”œβ”€β”€ entity
β”‚Β Β          β”‚Β Β                  β”‚Β Β  └── Hello.java
β”‚Β Β          β”‚Β Β                  └── service
β”‚Β Β          β”‚Β Β                      β”œβ”€β”€ HelloService.java
β”‚Β Β          β”‚Β Β                      └── impl
β”‚Β Β          β”‚Β Β                          └── HelloServiceImpl.java
β”‚Β Β          └── resources
β”‚Β Β              β”œβ”€β”€ application.yml
β”‚Β Β              └── mapper
β”‚Β Β                  └── HelloMapper.xml
└── pom.xml

Inside the project, we have a unit named Hello to help you understand this project more efficiently

when you start the project successfully. Visit http://localhost:8080/hello,when you see the message below, congratulations! It worked.

{
    "message": "Hello world",
    "createdAt": "current_timestamp"
}

Swagger

You can visit http://localhost:8080/swagger-ui.html to see your api documentation that generate automatically by swagger.

Licences

MIT

You can’t perform that action at this time.