Skip to content

Gcaufy/freedb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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