This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Get coingecko currrencies#1
Open
edoardo-bluframe wants to merge 8 commits intoWeAreDauntless:mainfrom
Open
Conversation
…currency page This commit adds the CoinGecko API to fetch data for displaying cryptocurrency information on both the homepage and currency page. It also adds a new type `Coin` in `types.ts`. The homepage now displays real-time data for 45 cryptocurrencies, while the currency page displays detailed information about a specific cryptocurrency.
This commit adds two new API routes to fetch coin data from the Coingecko API. The `/api/coins` route returns a list of 45 coins, while the `/api/coins/[symbol]` route returns data for a specific coin based on its symbol. The currency page and home page have been updated to use these new routes instead of making direct requests to the Coingecko API.
Improve user experience by adding a container with minimum height to the loading and error messages in both the Currency and Home pages.
Two new hooks added to fetch coin data and coins list. Our code was updated to use these hooks instead of making API calls
✨ Use fetchCoin and fetchCoins in useCoin and useCoins hooks respectively 🔧 Update _app.tsx to use Hydrate component for SSR 🚀 Implement server-side rendering with getServerSideProps for index.tsx and currency/[symbol].tsx
This commit adds test files for fetching coin and coins data from the API. It also includes mock data to be used in the tests. The tests use Jest, React Testing Library, and react-query library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.