#response #json-response #store #json-api #serve #key-value-store #locally

nightly app joff

Store JSON API responses in a key-value store and serve them locally

1 unstable release

0.1.0 Mar 11, 2021

#41 in #locally

Apache-2.0

31KB
174 lines

Joff

Rust

Store JSON responses locally and serve them locally using Rocket. Note: This is the Rust version of my Golang tool Acache.

Since this project is using Rocket.rs, you'll have to use the nightly toolchain by running: rustup override set nightly.

Usage

joff 1.0

USAGE:
    joff [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -b, --bucket-name <bucket-name>    Name of the KV bucket [default: json_data]
    -d, --data-path <data-path>        Path to the KV store [default: ./data]

SUBCOMMANDS:
    add      
    help     Prints this message or the help of the given subcommand(s)
    list     
    serve 

Dependencies

~20–33MB
~514K SLoC