Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.06 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.06 KB

Hedera Express API

An experimental Hedera API written with Node.js and TypeScript. Uses the JavaScript SDK to interact with the Hedera Hashgraph.

Prerequisites

Setup

Clone the repo and change directory.

git clone https://github.com/stevengregory/hedera-express-api
cd hedera-express-api

In the root directory of your project, create a .env.hedera file and add your testnet account OPERATOR_ID and OPERATOR_KEY. Now set the HEDERA_NETWORK to testnet.

# Hedera Operator Account ID
OPERATOR_ID = ENTER YOUR ACCOUNT ID

# Hedera Operator Private Key
OPERATOR_KEY = ENTER YOUR PRIVATE KEY

# Hedera Network
HEDERA_NETWORK = testnet

Installation

Install the npm packages.

npm install

Run the app

Run the application in dev mode.

npm run dev

Run tests

Run the unit tests.

npm run tests