/go-transfers

Provides asset and qu transfer information for integrators

Primary LanguageGoOtherNOASSERTION

go transfers service

This integration layer service provides asset and qu transfer information to integrators. The information is based on qubic events (aka 'logging').

Requirements

  • Go (golang)
  • Postgresql database

Setup

Create database user and schema

CREATE USER some_user_name WITH PASSWORD 'some-password';
CREATE DATABASE some_database OWNER some_user_name;

Database migrations use golang-migrate and are automatically applied on startup. For manual migration you can use migrate-cli (see golang-migrate docs), for example to clean the database use down or drop:

migrate -source file://path/to/migrations -database postgres://localhost:5432/database down

Configure environment

Environment variables need to be set. See .env for variables and defaults.

Build & Run

Run go build in the root folder. Then you can run the executable.