Skip to content

gomintco/gomint-api

Repository files navigation

gomint-api

Description

The GoMint API is an Open Source solution for interacting with the Hedera Hashgraph network. It integrates with existing user databases and simplifies the process of creating and submitting transactions to the Hedera network.

Features

  • User authentication and authorization
  • Token creation and management
  • Transaction handling
  • Custodial key control
  • Consensus service

Installation

$ npm install

Running the app in development mode

First create .env file that contains all the necessary environment variables. See .env.example for the required environment variables

web3.storage is used to store files (e.g. NFT metdata) on IPFS. Follow this link to configure the WEB_3_XXX environment variables.

Run MySQL docker container

$ docker compose -f compose.dev.yaml up -d

Run migrations and seeds

$ npm run mig:run
$ npm run seed:run

Start the app in a certain mode

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Migrations and Seeds

# creates a new empty seed
$ npm run seed:new <name of the new seed>

# runs all seeds that are down
$ npm run seed:run

# reverts the latest run seed
$ npm run seed:rev

# generates a new migration
$ npm run mig:gen <name of the new migration>

# runs all migrations that are down
$ npm run mig:run

# reverts the latest run migration
$ npm run mig:rev

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Production deployment

# build the app
$ npm run build

# start the app
$ npm run start:prod

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •