###Building the application
- If you don't have mvn, install it at first!
- Use this commands to build the application:
- If you work on IntelliJ IDEA,
./mvnw clean install -DskipTests - If installed the maven on your system,
mvn clean install -DskipTests
- If you work on IntelliJ IDEA,
###Running the application with your custom configuration file:
- Use
java -jar target/methadologist.jar --spring.config.location=file:////your/custom/config/path/ - Your path should contain an application.properties file
- Use the application-dev.properties content in your application.properties
###Test containers:
- Use this command if you have 404 error status code on getting the docker
image
docker pull testcontainers/ryuk:0.3.0
###Docker commands
- To remove all containers:
docker rm -f $(docker ps -aqs) - To remove all volumes:
docker volume prune - To rebuild the containers:
docker-compose up --build cryptocurrency - To just up the containers(using cache):
docker-compose up cryptocurrency
- Add
@Versionannotation in all the entities to let the JPA handles concurrent updates! For more details you can see this.@Version @NotNull @Builder.Default private Long version = 0L;- It throws
OptimisticLockExceptionin the last concurrent update! So, the frontend applications should receive proper error and take care of the error properly! - If you have some native update queries you should add take care of versioning yourself.
- It throws
Use this link to see more details on the expectations