This is a personal contact management to help people create and maintain thriving relationship in their life.
The world needs a privacy-first, offline-first, personal contact manager.
This Rust project requires the following:
- Cargo
- sqlx-cli
You can also use the nix flake. Install nix through the nix-installer. Once installed, run:
$ nix develop
- Copy the
.env.example
.env
cp .env.example .env
Optionally update environment variables
- Create the database.
sqlx db create
- Run sql migrations
sqlx migrate run
Create a contact
Usage: nbd-cli <COMMAND>
Commands:
create Create a contact
edit Edit a contact by ID
show Get all contacts
get Get a contact
delete Delete a contact
import Import contact via CSV
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
For example
cargo run create --first-name test --last-name last --email test@ttest.com --phone-number 123-231-1122 --birthday 1970-01-01
Then, you can see the contact using the show
command
cargo run show
Edit a contact
Arguments:
<ID> ID of contact to edit
Options:
-f, --first-name <First Name>
-l, --last-name <Last Name>
-d, --display-name <Display Name>
-e, --email <EMAIL>
-p, --phone-number <Phone>
-h, --help Print help
For example
cargo run edit 1 -f Jason
To destroy the database, delete contacts.db