- Throntail Version:
2.4.0.Final
- Config files in
YAML
format
- Install Lombok Plugin Intellij Plugin / Jar / VS Code Plugin
- Install Maven 3.3+ from here
- Start docker-compose (Prometheus and MongoDB Docker) pull .git and run in the downloaded .git folder "docker-compose up"
- download and extract Prometheus:
wget https://github.com/prometheus/prometheus/releases/download/v2.10.0/prometheus-2.10.0.windows-amd64.tar.gz
tar -xvf prometheus-2.10.0.windows-amd64.tar.gz prometheus-2.10.0.windows-amd64/
To install the dependencies, first run mvn install
. Run the application with this command:
$ mvn thorntail:run
Thorntail is ready
Port: 8888
Verify if the server is up and running, by visit this http://localhost:8888/api/users
- GET /api/users
- POST /api/users
- DELETE /api/users
- GET /api/users/{userId}
- GET /api/users/{userId}/favourites
- POST /api/users/{userId}/favourites
- DELETE /api/users/{userId}/favourites
- GET /api/users/search/{userName}
- POST /api/login
Start Options -> Edit Configuration -> Add Application -> Set Main class to
org.muuvy.backend.RestServiceTest
All thorntail configurations are located in src/main/resources/project-defaults.yml
. Each environment has its own config file.
- Prometheus: copy the file and put this inside the extracted file: https://github.com/muuvy/docs/tree/master/prometheus
- Run prometheus.exe and you can call this URL: localhost:9090
- more information here: #8
- JAX RS
- LOG
- CDI
- Logger
- Lombok
- Junit Jupiter
- Mongo Java Driver
- Hibernate OGM Mongo