A REST API written in Rust and the Rocket web framework that persists data in a rocksdb embedded key/value store. Follows resource/processor/externals tiered application structure.
cargo 1.29.0-nightly (506eea76e 2018-07-17)
rocksdb v5.14.2
rocksdb_path
: Filepath location of rocksdb sst file.
ROCKET_ENV
determines theRocket.toml
environment section.
cargo run
For now, the sst database files need to be dropped when adding/removing column families.
make build version=[version]
docker run -d -p 8000:8000 \
-v /mnt:/volumes \ # Or wherever the persistent block storage is mounted
--name habits \
-e ROCKET_ENV=production \
mtso/habits:[version]
- Run API docs collection as tests with newman.
- Handle errors at all layers better.