jacuzzi

Crates.iojacuzzi
lib.rsjacuzzi
version0.2.1
sourcesrc
created_at2020-09-21 02:21:02.221549
updated_at2022-10-13 00:44:33.864629
descriptionJacuzzi is a simple (http & http2) web server for serving SPA (Single Page Applications).
homepage
repositoryhttps://github.com/manimaul/jacuzzi/
max_upload_size
id290991
size50,192
William Kamp (manimaul)

documentation

README

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
Commit count: 7

cargo fmt