This repo contains my solution to the Snowplow Analytics technical test.
It is a simple REST service based on http4s and H2 (a more complete list of the employed libraries can be found in build.sbt
)
The main
method requires a single parameter: a path to the file where the H2 database will be stored, e. g. ./test
. If this file doesn't exist, the program will initialize it.
To run the project, open a terminal in the project repository and type sbt 'snowplowTask/run ./test'
(sbt must be installed). The server runs on port 8080. IDs are expected to be UUIDs.