This project aims to provide a simple and intuitive currency exchange service.
Users can easily convert between different currencies based on the latest exchange rates.
I created this project as a final exercise in the online Harvard University CS50x Introduction to Computer Science course.
I have made an algorithm to calculate currency exchange rates between the currencies currently in use on the European continent. The implementation of the calculation is quite simple and to acquire the current exchange rates I use the API of the online service Exchange Rate API found here. The project is built in such a way as to support the exchange of more currencies than those listed, but here I have limited myself to European currencies to simplify the visualization; anyone who consults this project is free to expand it as they prefer in compliance with the license indicated in the footer of the page.
Europe
Bulgaria
Czech Republic
Denmark
Hungary
Poland
Romania
Sweden
The front-end part includes four pages accessible from the page menu. The front-end was developed using HTML, CSS and Bootstrap library which can be consulted here. Bootstrap is a library of free tools for creating sites and applications for the Web. It contains design templates based on HTML and CSS, both for typography and for the various interface components, such as forms, buttons and navigation, as well as some optional JavaScript extensions. There are other open source libraries but I used Bootstrap because I consider it very intuitive.
The back-end part was developed with Javascript language. In reality, talking about back-end in this case is quite inaccurate as there is no real back-end server, but all requests are made on the client side using Javascript code. The controls for the operation of the form on the exchange page have also been entirely implemented with Javascript. Exchange rates were instead retrieved using https API calls to the Exchange Rate API service. This is a good service that offers free options; for this project, however, I had to temporarily subscribe to a subscription plan because without that only calls with the http protocol were allowed, and since many browsers currently only support https, errors were often encountered. Some bugs in the Javascript code have been fixed with the help of OpenAI's ChatGPT.