Skip to content

Scala Bleep sample project using ZIO and ZIO-HTTP

Notifications You must be signed in to change notification settings

carlosedp/bleepziohttp

Repository files navigation

Scala Bleep ZIO-HTTP Sample Project

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.

Pre-Reqs

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

Running and Testing

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.

About

Scala Bleep sample project using ZIO and ZIO-HTTP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages