Skip to content

Rust, Actix Web based http / http2 server for SPAs (Single Page Applications)

Notifications You must be signed in to change notification settings

manimaul/jacuzzi

Repository files navigation

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

About

Rust, Actix Web based http / http2 server for SPAs (Single Page Applications)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published