Skip to content

πŸ†πŸ†πŸ†πŸ† Rust/Rocket/RocksDB REST API.

Notifications You must be signed in to change notification settings

mtso/habits-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

habits service

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.

Requirements

cargo 1.29.0-nightly (506eea76e 2018-07-17)
rocksdb v5.14.2

Extra Rocket.toml Configs

  • rocksdb_path: Filepath location of rocksdb sst file.

Environment Variables

  • ROCKET_ENV determines the Rocket.toml environment section.

Running

In Development

cargo run

For now, the sst database files need to be dropped when adding/removing column families.

In Production

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]

API

Postman API Docs

TODO

  • Run API docs collection as tests with newman.
  • Handle errors at all layers better.

About

πŸ†πŸ†πŸ†πŸ† Rust/Rocket/RocksDB REST API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published