This project uses Micronaut as the basis of the implementation. Micronaut is a lightweight framework for implementing microservices in java
- Install Homebrew, if you don't already have it installed.
- Install Java 17 SDK - on Mac,
brew install java
should do the trick - Install Micronaut -
brew install micronaut
Clone the repo locally, and cd into the project directory.
- To run unit tests:
./gradlew test
- To run the application and submit ad requests:
./gradlew run
If you attempt to run it, and you get an error about JDK 17 being unavailable, this link has information to assist in fixing: https://medium.com/@manvendrapsingh/installing-many-jdk-versions-on-macos-dfc177bc8c2b
If you attempt to run the tests and get an error about port 8000 already being in use, ensure you're not running the application already in another terminal window.