Skip to content

Application to convert currencies basing on Czech National Bank rates

Notifications You must be signed in to change notification settings

ilog2000/cnb-rates

Repository files navigation

Currency Converter

This is a simple web application to convert between a limited number of currencies basing on exchange rates from the Czech National Bank (Česká národní banka, ČNB).

The application is built with React and TypeScript. Vite create app template was used to start it.

To run the application locally, clone the repository and run:

npm install
npm run dev

At the moment there is no API on the back end to get ČNB exchange rates and return them to the front end. The direct request from React app to the ČNB API is blocked by the CORS policy, so the proxy capabilities (redirects/rewrites) are used:

  • on local environment in Vite server (see vite.config.ts),
  • on Vercel (see vercel.json),
  • on Netlify (see _redirects in public folder).

TODO

  • Load currency exchange rates from the ČNB API only once a (working) day at 2pm CET.

About

Application to convert currencies basing on Czech National Bank rates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published