venus-init
v1.0.7
Published
A tool to generate spring cloud project
Downloads
5
Readme
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
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.