all templates
APIs & Data

Currency Converter

Convert between currencies at the latest real exchange rates.

Pick two currencies, type an amount, get the conversion using the latest rates published by the European Central Bank. You'll learn query parameters and how to build dropdowns from data the API gives you.

What's inside

  • Latest ECB rates for 30 currencies, with their date
  • Dropdowns populated from the API
  • URL query parameters, explained
  • Recomputes as you type; fetches only when a currency changes
  • Free API, no key required

Quickstart

$ git clone https://github.com/devai-io/devai_boilerplates.git$ cd devai_boilerplates/currency-converter$ open index.html   # or just double-click the file

Browse the code

The full source, exactly as it ships in the repo.

loading…
Download .zip
loading tree…

about this tutorial

A devai.io starter tutorial — query parameters and computing from live data.