Learn how to create perfect endpoints for filtering currencies. We don't need to use third-party libraries for searching and filtering currencies. We will create a basic endpoint to grab the list of all countries and their respective currencies and filtering the currency using country code or name.
We don’t need to use third-party libraries for searching and filtering currencies.
Filtering the countries or providing users with the search functionality for searching the country he/she belongs is not an easy task. Most of the time we end up using third-party libraries in the frontend or backend for creating endpoints out of it.
Today, we will create a basic endpoint to grab the list of all countries and their respective currencies and filtering the currency using country code or name.
We have already created a component in the frontend for searching and filtering the country. The link is provided below.
I will be using simple Express and Node.js to create an endpoint.
If you are my follower or a vivid reader of my articles, then you know that most of the time, I provide the link to the repository but today, we are not doing that. Instead, I will guide you with the steps to create a repository on your own.
Follow the steps to add a basic setup for creating endpoints using Express.
Who else loves to write side-effects-free functions? I think we, as programmers, all do. Today, in this story, I will walk you through the basic principles of functional programming that will make your coding life easier.
Formatting code consistently is a pain, especially when working on a team. The beauty of modern-day web development is that the tooling has gotten so much better! In this article, we will look at setting up Prettier to automatically format your code in Visual Studio Code.