Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/falcucci/hedera-coin

A decentralized cryptocurrency platform that can be used to make payments, store value, and provide a secure way to transfer digital assets.
https://github.com/falcucci/hedera-coin

blockchain golang

Last synced: about 2 months ago
JSON representation

A decentralized cryptocurrency platform that can be used to make payments, store value, and provide a secure way to transfer digital assets.

Awesome Lists containing this project

README

        

# HederaCoin API

This application is responsible for provide wallet informations to HederaCoin clients and integrate to HederaCoin Payments API.

## Table of contents

- [Table of contents](#Table-of-contents)
- [Installing](#Installing)
- [Environment Variables](#Environment-Variables)
- [Building](#Building)
- [Running](#Running)
- [Deploying](#Deploying)

## Installing

Assuming that you have already cloned the project and the
[Go](https://golang.org/doc/install) is installed, the first
step is install the [dep](https://github.com/golang/dep) and
ensure that all dependencies are vendored in the project:

```sh
$ dep ensure
```

## Environment Variables

```
Variable | Type | Description
----------------------------- | ------- | ---------------------------------------------------------
DATABASE_HOST | string | Database host
DATABASE_PORT | string | Database port
DATABASE_NAME | string | Database name
DATABASE_PASSWORD | string | Database Password
DATABASE_USERNAME | string | Database username
PRIVATE_KEY | string | Hedere private key of current user account
TARGET_ACCOUNT | integer | Hedera account ID which will receive the transfer ammount
DATABASE_MAX_IDLE | integer | Database max idle value
DATABASE_IDLE_TIMEOUT | integer | Database idle timeout value
HEDERACOIN_PAYMENT_URL | integer | HederaCoin Payment URL
HEDERACOIN_PAYMENT_TIMEOUT | integer | HederaCoin Payment Timeout
DATABASE_MAX_CON | integer | Database max. connections
```

## Building

Build project:

```sh
$ make build
```

## Running

Start the app consumer:

```sh
$ make start
```

## Deploying

Deploy application to Teresa:

```sh
$ bash ./scripts/deploy.sh -f
```