Java backend service generator
This repo has the intend to create the ability to bootstrap fast a rest Java back-end service with less quesitons needed.
For that somethings will need to be default, as the structured logs/Heroku and Travis configurations
.
To install the project:
npm install -g generator-macchiato
To run:
yo macchiato
To succefull run the project you will need:
This project will create for you:
This is the structure that macchiato will generate:
project
│ .travis.yml
│ .gitignore
│ Procfile
│ build.gradle
└───gradle
│ └───scripts
│ │ │ java.gradle
│ │ │ spring-boot.gradle
│ │ │ postgres-docker.gradle
│ │ │ test.gradle
│
└───src/main/java/<%defaultPackage%>
│ │ Application.java
│ │
│ └───config
│ │ │ ClockConfiguration.java
│ │ │ PropertiesConfiguration.java
│ └───controller
│ │ GlobalExceptionHandler.java
│
└───src/main/resources
│ │ application.properties
│ │ application-local.properties
│ │ logback.xml
│
└───src/test/java/<%defaultPackage%>
│ │ Application.java
│
└───src/test/resources
│ application-test.properties