#http2 #spa #single-page #http #web-server

app jacuzzi

Jacuzzi is a simple (http & http2) web server for serving SPA (Single Page Applications)

2 unstable releases

0.2.1 Oct 13, 2022
0.1.1 Sep 21, 2020

#749 in HTTP server

Apache-2.0

23KB
89 lines

Jacuzzi (SPA Web Server)

Jacuzzi is a simple (http & http2) web server for serving SPA (Single Page Applications). Jacuzzi is built with Rust on top of Warp.

Image of a jacuzzi

Why is Jacuzzi good for Serving SPA (Single Page Applications)

Jacuzzi is configured to return the index.html file for any GET request that would normally return a 404 (not found). You can point Jacuzzi at a directory with index.html in it's root and it will serve all content inside that directory normally. Any unknown GET request path that would normally 404 will instead 200 with the content of index.html. This allows the router to detect the route and serve the correct content.


Run with Cargo

TLS_DIR="$(pwd)/self_signed_cert" cargo run -- sample/

Install with Cargo

cargo install --path . 

Run (After installing 😀)

TLS_DIR="$(pwd)/self_signed_cert" jacuzzi sample/

Run with Docker

docker run -p 8443:8443 manimaul/jacuzzi:0.2.1 /var/www/sample 

Build with Docker

./build_container_image.sh

Dependencies

~13–24MB
~357K SLoC