- 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.
- Docker
- Docker Compose
- Node.js (v20.6.1)
- Redis Stack Server
- 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
- Node.js (v20.6.1)
- React (v18.2.0)
- Next.js (v13.4.19)
- Fastify (v4.0.0)
- Redis (v7.2.0)
- Docker
- Docker Compose
- TypeScript (v5.2.2)