Movatterモバイル変換


[0]ホーム

URL:


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

This project is a cryptocurrency review app with a realtime API. Users can review cryptocurrency prices in USD, EUR, KRW, JPY, and GBP.

NotificationsYou must be signed in to change notification settings

Hannah-Moon/45_React_RealTime_Investment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • This project is a cryptocurrency review app with a real-time API.
  • Users can review cryptocurrency prices in USD, EUR, KRW, JPY, and GBP.

🎬 Live Demo

The app is deployed. Please visithttps://realtimeinvestment.netlify.app/ to explore Real-Time investment.screen capture

❓ Why Use React Router?

React Router is a vital tool in React development, facilitating seamless navigation between different pages within a web application. It enables the creation of sophisticated websites with multiple pages while maintaining the underlying structure of a single-page application. When users interact with links or buttons to navigate, React Router dynamically updates the content on the screen without reloading the entire page from the internet. This enhances the user experience, making it smooth and intuitive.

🛠️ Implementation Steps

0️⃣ Install Extension

  • ES7 React/Redux/GraphQL/React-Native

1️⃣ Prepare the Project

$ npx create-react-app react-router-realtimepayment

2️⃣ Install the Router Library

$ npm i react-router-dom

3️⃣ Import Route and Routes in app.js

import { Route, Routes } from "react-router-dom";

4️⃣ Install Material UI

$ npm install @mui/material @emotion/react @emotion/styled

5️⃣ Install styled-components and lab

$ npm i @material-ui/core$ npm i @mui/material @mui/styled-engine-sc styled-components$ npm i @mui/lab @mui/material

6️⃣ Install react-alice-carousel and tailwind

$ npm i react-alice-carousel$ npm install -D tailwindcss$ npx tailwindcss init

7️⃣ Install html-react-parser

$ npm install html-react-parser

8️⃣ Install 'react-chartjs-2' chart.js for graph

$ npm i react-chartjs-2 chart.js

📚 API Reference

🛑 Roadblocks

  1. DeprecatedmakeStyles from MUI: I initially used themakeStyles function from MUI but learned that it is deprecated. To address this issue, I created a separate CSS file for styling.

  2. DeprecateduseHistory Hook: TheuseHistory hook has been deprecated, so I replaced it with theuseNavigation hook.

  3. CoinGecko API and CORS Policy: The CoinGecko API was being blocked by the CORS policy. To resolve this issue, I installedcors-anywhere using the following command:

    npx cors-anywhere
  4. Axios Fetch Errors: I encountered frequent fetch errors using Axios with the free API. To enhance future functionality and reliability, I will consider purchasing a paid API.

  5. Styling Challenges: Combining CSS, Tailwind, and MUI for styling was challenging, but it provided full freedom to create better designs and styling.

🎖️ Credits and reference

  • Photo by fabio on Unsplash
  • BannerBackground01 Photo by Shubham Dhage on Unsplash
  • Cryptocurrency Tracker with React JS, Material UI, and Chart JS by @roadsidecoder via @YouTube

🚀 React App

  • This project was bootstrapped with Create React App.

About

This project is a cryptocurrency review app with a realtime API. Users can review cryptocurrency prices in USD, EUR, KRW, JPY, and GBP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp