A Yeoman generator for generating Springboot microservice and microservices
npm install @kingether/generator-kingether#generator-kingether
A Yeoman generator for generating Microservices with SpringBoot
```
> npm install -g yo
> npm i @kingether/generator-kingether
> yo kingether
* SpringBoot REST API with jar type packaging
* CORS configuration
* Swagger UI Integration
* Spring Data JPA integration with option to select databases like MySQL, Postgresql, MariaDB etc
* Flyway or Liquibase data migration support
* SpringBoot Actuator configuration
* TestContainers integration
* JUnit 5
* Docker configuration for Application, ELK, Prometheus, Grafana
* Localstack configuration
* Jenkinsfile
* GitHub Actions Configuration
* CheckStyle, PMD, SonarQube, Google-java-format static analysis tools configuration
!Microservice Generation
!Microservice Generation
:high_brightness: You should run the following command from within the generated project folder.
myservice> yo kingether:controller Customer --base-path /api/customers
This will generate:
* JPA entity
* Spring Data JPA Repository
* Service
* Spring MVC REST Controller with CRUD operations
* Unit and Integration Tests for REST Controller
* Flyway or Liquibase migration to create table
1. I like jar packaging
2. I like to use spring-boot-starter-* than configuring individual libraries
3. I like to have an option to generate application without spring-security
4. I prefer Flyway to Liquibase
5. I like to have only minimum and required configuration ie no AsyncConfiguration, LocaleConfiguration, CacheConfiguration, Logstash Logging etc.
6. I like .properties over .yml
and service-registry`