Skip to content

detectiveHLH/venus-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

πŸ› οΈ A tool to generate spring boot application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published