Skip to content

jasonribble/nbd

Repository files navigation

No Big Deal - A Connection Cultivator

Commit Phase

Description

This is a personal contact management to help people create and maintain thriving relationship in their life.

Motivation

Most CRM tools are not offline first, or privacy by design. This project attempts to solve that problem first, then try to create a seamless integration across devices.

Development

This Rust project requires the following:

  • Cargo
  • sqlx-cli

Setup

  1. Declare the database URL, either by exporting it:

    export DATABASE_URL="sqlite:contacts.db"
    

    or by making a .env file:

    cp .env.example .env
    
  2. Create the database.

    $ sqlx db create
    
  3. Run sql migrations

    $ sqlx migrate run
    

Usage

Create a contact

Usage: nbd create [OPTIONS]

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 create --first-name test --last-name last --email [email protected] --phone-number 123-231-1122

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 5 -f Jason

Cleanup

To destroy the database, delete contacts.db

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published