Personal One-Page-Website for Christopher Scholz build with Rocket.
- Using Tera Templates via
rocket_dyn_templates::Template
to create the home and 404 page - Serving Static Files via
rocket::fs::FileServer
- Tests for home page, 404 page and static files response
The app can be run locally or via docker.
For the local
setup run
cargo test
cargo run
For the docker
setup run
docker build . -t christopher-scholz/one_page_website
docker run -p 8000:8000 -d --rm --name one_page_website christopher-scholz/one_page_website