Profile Service is responsible to showcase the new template for projects implementing an H2 In Memory database for a Profile instance
This project was build based on PaloIT templates.
- Java JDK >=17
- NodeJS (to use httpyac cli)
- Set up code formatting template (root folder intellij-java-google-style.xml)
- Change properties encoding to UTF-8
- Follow the PaloIT setup guide https://paloit.atlassian.net/wiki/spaces/PAPA/pages/2152661057/IDE+Setup
- HTTP Yac.
npm install -g httpyac
The application has the next Spring Profiles that configure the application behavior
Profile | Behavior |
---|---|
develop | Active typical one line log format |
- Compile
mvn clean install
- Run Application
mvn spring-boot:run -pl profile-service-server -Dspring-boot.run.profiles=develop
- Run Integration Tests
mvn failsafe:integration-test
- Build Image
mvn clean install
mvn spring-boot:build-image pl profile-service-server
- Test API's and/or GRPC Services
httpyac send http-collection/ --all
- Make sure before any commit your code use the formatting template
intellij-java-google-style.xml
- Document your
@ConfigurationProperties
in code and Properties Markdown you can follow the Spring Guide ConfigurationProperties Documentation this will let external people know what configurations are available. - Document in this readme new Spring profiles
- Scripts file name have start with
db.
and include a timestamp to order the files the time stamp have to follow the pattern%Y%m%d%H%M
. You can use the next unix script to generate the name
date +db.%Y%m%d%H%M
- Scripts have to include attributes
id
with a unique identifier suggested ULID. This is an Online ULIDauthor
with the email of the authorcomment
with a short description of the changetagDatabase
to be able to do rollback during production deployment