Base currency: Target currencies: Get Latest Rates We want to use Tailwind CSS v3, so add it to your project together with postcss and autoprefixer for a clean and stable build process:Īfterward, initialize tailwind, which will create a in your project's root directory: # Install the CurrencyAPI packageĪs mentioned above, we will use our JavaScript package (opens new window): # Install & configure tailwind.css (optional) Make sure to select vanilla for your project setup!Īfterward, switch to the newly created project folder. Navigate to your workspace on your machine where you want to create your currency converter project and initialize a new vite project: ⬆️ Preview of the final outcome of this tutorial # Prerequisites In this article, we build a currency converter in JavaScript, with the help of our JavaScript package (opens new window), which handles the requests to the API itself.įurthermore, we will use vite (opens new window) as build tool and tailwind (opens new window) for easy styling. # Building a Currency Converter in JavaScript # Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |