defep / fx-rates

Currency converter tool that connect to the Fixer API and let you set a mark-up fee to a given rate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fx-Rates

A currency converter tool that uses a ReactJS frontend, an api written in hapi, and MongoDB to store the currency rates and fees.

Screenshot

fx-rates

Install

Clone this repo

git clone https://github.com/defep/fx-rates

Install the required dependencies for the client and server applications.

cd fx-rates
npm i --prefix server && npm i --prefix client

Server setup

Inside the server folder create an .env file and add your Fixer API key. You can create it from .env.example.

cd server
cp .env.example .env
vi .env

Run Server

cd server
npm start

Run ReactJS

Change directory to client folder and modify the package.json proxy value from api to localhost.

"proxy": "http://localhost:3001"

Start the ReactJS app.

npm start

Docker

Alternatively you could use docker-compose to run this application.

docker-compose up --build

About

Currency converter tool that connect to the Fixer API and let you set a mark-up fee to a given rate.


Languages

Language:JavaScript 80.7%Language:HTML 11.0%Language:CSS 6.2%Language:Dockerfile 1.7%Language:Shell 0.4%