Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlosedp/bleepziohttp
Scala Bleep sample project using ZIO and ZIO-HTTP
https://github.com/carlosedp/bleepziohttp
bleep scala zio zio-http
Last synced: 10 days ago
JSON representation
Scala Bleep sample project using ZIO and ZIO-HTTP
- Host: GitHub
- URL: https://github.com/carlosedp/bleepziohttp
- Owner: carlosedp
- Created: 2023-07-29T21:20:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-02T14:18:01.000Z (over 1 year ago)
- Last Synced: 2024-04-14T09:14:55.807Z (7 months ago)
- Topics: bleep, scala, zio, zio-http
- Language: Scala
- Homepage:
- Size: 16.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Scala Bleep ZIO-HTTP Sample Project
This is a sample project based on ZIO and ZIO-HTTP using Scala [Bleep](https://bleep.build/docs/) 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](https://get-coursier.io/docs/cli-installation#native-launcher) to manage tooling install.
On Windows, download and install using the [Windows Installer](https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-win32.zip).
```sh
# 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 > cschmod +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:
```sh
bleep run httpserver
```Test the project with:
```sh
bleep test
```To generate the GraalVM native-image binary, use:
```sh
bleep native-image httpserver
```The generated binary name and path will be printed at the output.