An app that monitors changes in the Bitcoin Price Index (BPI).
The BPI will be shown for the USD currency.
Bitcoin Monitor makes use of the CoinDesk Bitcoin Price Index API. Go here for more price information by CoinDesk.
The application is composed of the following components:
-
App - The main application component
-
Header - A heading that displays application title
-
BitcoinMonitor - The primary (root) component that manages state for itself and all underlying components. It is also responsible for connecting to BitcoinService to retrieve Bitcoin Price Index pricing data.
-
Display - Displays the CurrentPrice and PriceHistory components
-
CurrentPrice - Displays the current pricing Bitcoin Price Index data for USD.
-
PriceHistory - Displays the Bitcoin Price Index pricing data for USD currency for the past seven days.
The following services are used to obtain Bitcoin Price Index pricing data:
-
BitcoinService
A wrapper that is responsible for integrating with the CoinDesk Bitcoin Price Index API
Features:
- Show Current BPI for USD currency
- Show BPI for the past seven days for USD currency
This project also demonstrates:
- a typcial React project layout structure
- babel setup and configuration
- webpack setup and configuration
- eslint setup and configuration
- SCSS setup and configuration
- CoinDesk Bitcoin Price Index API integration
Screenshots:
- Node.js - Javascript runtime
- React - A javascript library for building user interfaces
- Babel - A transpiler for javascript
- Webpack - A module bundler
- SCSS - A css metalanguage
- Bootstrap 4 - Bootstrap is an open source toolkit for developing with HTML, CSS, and JS
- Axios - Promise based HTTP client for the browser and node.js
- CoinDesk Bitcoin Price Index API - Provides Bitcoin Price Index data
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The following software is required to be installed on your system:
- Node 8.x
- Npm 3.x
Type the following commands in the terminal to verify your node and npm versions
node -v
npm -v
Follow the following steps to get development environment running.
-
Clone 'react-bitcoin-monitor' repository from GitHub
git clone git@github.com:andyfrith/react-bitcoin-monitor.git
-
Install node modules
cd react-bitcoin-monitor yarn install
-
Run start
yarn start
- Portfolio: Visit portfolio site at http://goodapplemedia.com.
- Andy Frith: Learn more about the site developer at http://andyfrith.com.