josuedanielbust / currency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Currency Exchange App

Content table

Test requirements

  • Your task is to develop a TypeScript / React application that interacts with the Currency Converter API. The goal is to continuously fetch and display the currency conversion rates between USD and BRL for the last 24 hours.

Solution

Requirements

  • Docker
  • Docker Compose
  • Node.js (v20.6.1)
  • Redis Stack Server

How to run

  • Clone this repository
  • Create a .env file in the root of the project and add the following variables:
API_URL=https://currency-converter5.p.rapidapi.com
API_KEY=YOUR_API_KEY
CURRENCY_FROM=USD
CURRENCY_TO=BRL
- `API_URL` is the URL of the [Currency Converter API][#1]
- `API_KEY` is the API Key of the [Currency Converter API][#1]
- `CURRENCY_FROM` is the currency that you want to convert from
- `CURRENCY_TO` is the currency that you want to convert to
  • Run docker-compose build to build the application
  • Run docker-compose up -d redis to start the Redis Stack Server on detached mode
  • Run docker-compose up -d back to start the backend on detached mode
  • Run docker-compose up -d front to start the frontend on detached mode
  • Open your browser and access http://localhost:3000

Used technologies

Author

Josue Daniel Bustamante

About


Languages

Language:TypeScript 91.0%Language:Dockerfile 5.6%Language:CSS 2.6%Language:JavaScript 0.9%