- To run application on 8081 port use
./mvnw clean package docker:build docker:run
- To run application on a specific port use
-Dservice.port=
Example:
./mvnw clean package docker:build docker:run -Dservice.port=9870
It definitely works for the amd64 architecture. There may be problems with running on the M1.
Java 17 is required
./mvnw clean package
java -jar fizzbuzz-app-0.0.1-SNAPSHOT.jar
curl -X POST -H "Content-Type: application/json" \
-d '{"numbers": [1, 2, 3, 4, 5, 14, 15]}' \
http://localhost:8081/fizzbuzz
- The application purposely uses a BigInteger to handle any number.
- The application and code are as close to production-level