xrustik666 / accurate

App for converting current rates

Home Page:https://xrustik666.github.io/accurate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About the project

This application is called AccuRate. It shows you exchange rates of world's most popular currencies. In the "About" section you will find a link to the deployed project and will be able to evaluate how it works.

What this app can do

All you need is to choose currency pair. Select target currency (which rate you want to know) > select base currency (in which you would like to see the result) > don't forget to enter amount > press "Convert" button. For example, you want to see cost of 20 EUR against USD. In this case, EUR is target currency, USD is base currency (you will see the result in USD). 20 is amount.

All rates are relevant for this moment.

Moreover, you also can look archive rates. Choose currency pair > choose needed dates > press "Show archive rates" button. Now you see current rates of previous years.

All data is fetched from European Central Bank. API is provided by Frankfurter.

Project structure

Root folder contains 'index.html' and 'styles.css'. These files are responsible for visual design. Also, all data appends to elements that 'index.html' already contains.

'resources' folder contains the logo of the project.

'src' folder contains 2 folders: 'data' and 'views'. The "data" folder contains functions that are responsible for implementing the logic. These functions receive data via the API and transfer it to 'Views' functions in the form that a user will see on the site. The "views" folder basically contains the code responsible for adding this data to 'index.html'. This code runs inside the 'main.js', which is located in the root of the 'src' folder.

About

App for converting current rates

https://xrustik666.github.io/accurate/


Languages

Language:JavaScript 57.5%Language:CSS 29.3%Language:HTML 13.1%