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 🚀
- Host: GitHub
- URL: https://github.com/ramytanios/fs2-live-server
- Owner: ramytanios
- Created: 2023-09-04T21:09:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T23:25:22.000Z (over 1 year ago)
- Last Synced: 2025-01-24T23:26:01.674Z (over 1 year ago)
- Topics: cats-effect, fs2, live-server, nix, scala
- Language: Scala
- Homepage:
- Size: 1.24 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```