An open API service indexing awesome lists of open source software.

https://github.com/ramytanios/fs2-live-server

Purely functional and simple static web server with hot reload functionality 🚀
https://github.com/ramytanios/fs2-live-server

cats-effect fs2 live-server nix scala

Last synced: 8 months ago
JSON representation

Purely functional and simple static web server with hot reload functionality 🚀

Awesome Lists containing this project

README

          

# fs2-live-server

Purely functional static server with hot-reload based on the following beautiful libraries 🔥:
- [fs2](https://fs2.io/) 👈
- [http4s](https://http4s.org/) 👈

and built with [Scala CLI](https://scala-cli.virtuslab.org/) 😎

Inspired by NodeJS [Live Server](https://github.com/tapio/live-server) 💡

If you have [nix](https://nixos.org/download.html) installed and [flakes enabled](https://nixos.wiki/wiki/Flakes#Enable_flakes):

```shell
# JVM app
nix run github:ramytanios/fs2-live-server#jvm --refresh
```

If you want the actual binary, simply replace `run` by `build`.⚙️

This flake also contains a dev shell suitable for working on the app:
```shell
nix develop
```