Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Exchange Rate Currency Task#33

Open
ibachev wants to merge 3 commits intoDishboard:main from
ibachev:main
Open

Exchange Rate Currency Task #33
ibachev wants to merge 3 commits intoDishboard:main from
ibachev:main

Conversation

@ibachev
Copy link

@ibachev ibachev commented Dec 30, 2024

Fullstack Developer Task Implementation

This pull request fulfills the requirements outlined in the Fullstack Developer Task, involving the creation of a backend GraphQL API to fetch and cache exchange rates, and a frontend interface to display the data.


Backend Implementation

  1. GraphQL Query for Exchange Rates

    • Added a getExchangeRates query to fetch exchange rates from the Czech National Bank.
    • The query returns the following fields:
      • country
      • currency
      • amount
      • code
      • rate
  2. Data Caching

    • Implemented a caching mechanism using PostgreSQL with a 5-minute lifetime:
      • Cached data is read from the database if valid.
      • Expired cache triggers fetching, storing, and returning updated data from the Czech National Bank.

Frontend Implementation

  1. Exchange Rates Table

    • Developed a web page using React and TypeScript to display exchange rates in a table format.
    • Used MUI Data Grid for:
      • Client-side filtering.
      • Pagination and sorting.
  2. Last Fetch Time

    • Included a section to display the time elapsed since the last fetch, providing visibility into the cache status.

Screenshot

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /