Skip to content

Gcaufy/freedb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

50fc872 · Jul 14, 2019

History

38 Commits
Jun 30, 2019
Jul 14, 2019
Jul 2, 2019
Jul 14, 2019
Jul 2, 2019
Jul 5, 2019
Jun 30, 2019
Jul 2, 2019
Jul 14, 2019
Jul 2, 2019
Jul 2, 2019
Jul 2, 2019
Jul 2, 2019

Repository files navigation

freedb

A lightweight solution to use a cloud Key-Value database based on github.com.

Also available in Node.js freedb.js

freedb

Install

go get -u github.com/Gcaufy/freedb

Build from source

See BUILD.md.

Usage

 $ freedb -?
Usage:
  freedb [flags]

Flags:
  -b, --branch string     Config using branch. (default "master")
  -d, --database string   Config using database. (default "default")
  -e, --execute string    Execute command and quit.
  -?, --help              Display the help
  -h, --host string       Connect to host, which is a https/ssh git clone link.
  -s, --short-output      Only output the value
  -k, --key string        Secret key for encrypt and decrypt.
  -t, --token string      Access token for the git repository.

How to generate a token

  1. Create or use your own github.com account and login.
  2. Go to: Settings -> Developer settings -> Personal access tokens -> Generate new token
  3. Select scopes: "repo" to make sure you grant access.

API:

GoDoc

How to protect your data

  1. Make the repository private. Simply and easy. Github support private repository
  2. Use -k option to add a secret key. Then all key and value will be encrypt with AES.

About

Git based database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published