Ever wanted to show a friend a xkcd comic but you were offline?
This application provides a local xkcd clone which is even searchable.
- Install and enable the nightly rust toolchain (preferred installation method is rustup)
- (optional) Execute the
cargo run ...
commands withcargo run --release ...
- Clone the current xkcd data (execute this command whenever you want to update the data)
cargo run -- update
- Start the local server
cargo run -- server
- Browse xkcd at localhost:8080 and have fun
All configuration options can also be found with cargo run -- help
and cargo run -- help <subcommand>
.
- While downloading xkcd, you can specify the number of concurrent connections with
cargo run -- update -j <num>
(default is 4) - Set the server port with
-p <port>
(default is 8080) - Set the listening address with
-a <address>
(default is 0.0.0.0)
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.