The current version of the project uses PostgreSQL as its backing database.
The building process assumes that you have build requirements installed system-wide.
- Maven 3.x
- Java 17
From the project root run the following command:
$ mvn package This will generate a distribution package dist inside the target directory for the rand-generator and rand-tokenizer-application modules.
From the project root:
$ docker-compose --env-file=docker.env upUse the docker ps or docker-compose ps command to identify the container name.
Then in the case of rand-generator:
$ docker exec -t rand-generator-1 curl -XGET http://localhost:8080/random/intExample output:
-> 179694814
or in case of rand-tokenizer:
$ docker exec -t rand-tokenizer-1 curl -XGET http://localhost:8080/tokens/RBA/count -d 'from=2022-10-06T00:00:00' -d 'to=2023-11-06T13:20:24'Example output:
-> {"success":true,"token":"RBA","count":115}