A currency converter tool that uses a ReactJS frontend, an api written in hapi, and MongoDB to store the currency rates and fees.
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
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
cd server
npm start
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
Alternatively you could use docker-compose to run this application.
docker-compose up --build