Skip to content

dcSpark/pricing-service

Repository files navigation

Cardano-Pricing Service

Node.js CI

Background

Purpose of this project

The purpose of this micro service is to cache price from cryptocompare that can be queried by the cardano-backend service.

Requirements

You will need the API key. You will need to ask for it.

Building

Development build (with hot reloading):

# install the right version of Node
nvm install
nvm use

# install dependencies
npm install

# build
npm run build

# run the server
npm run dev:run

Never put production credentials into repository!

Containers

This will build to a container with the docker file. The container is using the PM2 runtime. You will need to pass ENV variables to the container to register with PM2 logging.

Tests

API