This is a small React application which allows the user to calculate currency conversions.
- I undertook this project in order to familiarize myself with making API requests inside a React application
- Especially I wanted to gain insight about handling the requested data and how to manipulate in order to render it
- I watched the tutorial before trying it for myself which is why there are only slight differences in code
- The purpose of this project was just to learn new things
- React 17.0.2
- Exchange Rates API
- Converting one currency into another and back using the Exchange Rates API
Live demo here.
The dependencies which are necessary to run this app can be found in the package.json file.
- Clone the repo
- Navigate to the project folder in the terminal and install the necessary NPM dependencies
npm install
- Obtain an API key from the Exchange Rates API
- Insert the API key into App.js
const ACCESS_KEY = 'YOUR_ACCESS_KEY_HERE';
- Run the app typing
npm start
in your terminal and visit localhost:3000 in your browser.
- Using an API in React
- How to setup two way data binding in React
- Hiding API keys in React applications using environment variables and netlify functions
The project is finished.
- This project was based on this tutorial