11 stable releases
1.2.16 | Jul 27, 2022 |
---|---|
1.2.11 | Dec 7, 2021 |
1.2.0 | Sep 24, 2021 |
1.0.1 | Jul 16, 2021 |
0.2.8 | Jul 16, 2021 |
#1494 in Database interfaces
32 downloads per month
41KB
645 lines
redact-store
redact-store is a storage server
Setup
redact-store currently only supports being run with a MongoDB back-end, although more will be added in the future. There are a couple options for getting a free mongo database:
- Get a 100% free, fully-managed database at mongodb.com (easier, available from any device)
- Host it locally by installing and running mongo (harder, only available locally)
The storage server simply takes in a connection string and database name and is agnostic to where the database is hosted.
Run
git clone https://github.com/pauwels-labs/redact-crypto
echo "export REDACT_DB_URL=\"<mongo connection string>\"" >> config/config.env
echo "export REDACT_DB_NAME=\"<db name>\"" >> config/config.env
source config/config.env
cargo r
Usage
- Get data route. This route takes in a data path and will return the data at that path if it exists.
GET /<path>
<path>
is a jsonpath-style string prepended and appended by a period, e.g..profile.firstName.
- Post data route. This route access an entire data entry and will store it in the database if possible.
POST /
- The body of the request should be an
Entry
struct serialized as JSON
Test
To run unit tests:
cargo t
To run unit tests+code coverage output (does not work on macos or windows):
cargo install tarpaulin
cargo tarpaulin -o html
Docs & Support
Docs are available at docs.redact.ws.
Join us in our Keybase channel! You can download the keybase client here.
Once there, click on Teams, select Join a team, and our team name is pauwelslabs.
Once you're in, Redact discussion happens in the #redact channel.
Discussions in the Keybase team should be respectful, focused on Redact, and free of profanity.
Dependencies
~71MB
~1M SLoC