Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gcaufy/freedb

Git based database
https://github.com/gcaufy/freedb

Last synced: about 1 month ago
JSON representation

Git based database

Awesome Lists containing this project

README

        

# freedb

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

Also available in Node.js [freedb.js](https://github.com/Gcaufy/freedb.js)

![freedb](https://user-images.githubusercontent.com/2182004/60488728-50dae280-9cd5-11e9-933b-b6798f87af95.png)

## Install

```
go get -u github.com/Gcaufy/freedb
```

## Build from source

See [BUILD.md](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](https://godoc.org/github.com/Gcaufy/freedb/kv)

## 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.