This is a sample project based on ZIO and ZIO-HTTP using Scala Bleep build tool which uses a simple, data-only build file written in YAML (bleep.yaml
) that has no logic or code and is blazing fast.
The project also includes a GitHub Action to run tests automatically serving as a template.
I recommend using Coursier to manage tooling install.
On Windows, download and install using the Windows Installer.
# For Linux
curl -fL "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz" | gzip -d > cs
# For MacOS
curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-apple-darwin.gz | gzip -d > cs
chmod +x cs
./cs setup
# Install Bleep build tool:
cs install --channel https://raw.githubusercontent.com/oyvindberg/bleep/master/coursier-channel.json bleep
Run the main server with:
bleep run httpserver
Test the project with:
bleep test
To generate the GraalVM native-image binary, use:
bleep native-image httpserver
The generated binary name and path will be printed at the output.