This is a simple React-based web application that helps users convert an amount in Czech Koruna (CZK) to various other currencies using up-to-date exchange rates provided by the Czech National Bank. The application also displays a table of the available currencies and their corresponding exchange rates.
- Convert amount in CZK to other currencies
- Display a table with available currencies and their exchange rates
- Automatically update exchange rates from the Czech National Bank
Before you can set up and run the application, you need to have the following software installed on your system:
- Clone the repository:
git clone https://github.com/vasek/currency-converter.git
- Navigate to the project folder:
cd currency-converter
- Install the required dependencies:
npm install
- Run the React development server:
npm start
The application should now be running on http://localhost:3000
.
- In a separate terminal window, run the CORS proxy server:
npm run proxy
The proxy server should now be running on http://localhost:3001.
The proxy server is required to bypass the CORS restriction when fetching data from the CNB API. The React application will make requests to the proxy server, which will then forward the requests to the CNB API.
GPT-4 and Vaclav Ostrozlik