Skip to content

rcrespodev/currency_price

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Bitcoin Price

Nest framework TypeScript starter repository.

Installation

npm install

Deploy and Run the app

# Build test and deploy docker image
make run
# if you don´t have make
docker-compose -f docker-compose.yaml up -d --build
# check container

# command:
docker ps -f name=currency_price_currency_price

# output:
CONTAINER ID   IMAGE                           COMMAND                  CREATED          STATUS          PORTS                                       NAMES
9e52ad83d434   currency_price_currency_price   "docker-entrypoint.s…"   11 minutes ago   Up 11 minutes   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp   currency_price_currency_price_1

Test

npm test

Features

The user can display the current price of Bitcoin currency in tree different exchanges (usd, eur or gbp). The Backend expose tree endpoints, one for each use cases. Then, the Backend fetch the data online from CoinDesk API and render it using handlebars templates.

home page price view