yky32 / blockchain-node-rpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Running the node and app in Docker

Goto litecoin-node.ts and ensure that the host is set to node since this is the hostname exposed by docker's networking

You need to then build an image of the microservice by doing so

$ docker build -t litecoin-ms:latest .

You also need to build the image of the node by going to litecoin-image and running

docker build -t ltc/litecoin:v0.21.2.1 .

Once the images are built, run the compose command to start the containers

$ docker compose up

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About


Languages

Language:TypeScript 49.8%Language:JavaScript 43.3%Language:Dockerfile 6.7%Language:Shell 0.2%