Before you begin, ensure you have the following prerequisites installed:
- Node.js (v14 or higher)
- npm (Node Package Manager)
- Internet connection to fetch cryptocurrency price data from the API
-
Clone this repository:
git clone https://github.com/your-username/pyor-crypto-dashboard.git
-
Navigate to the project directory:
cd pyor-crypto-dashboard
-
Install dependencies:
npm install
The line-chart component uses the Apache ECharts SDK to display price trends of different cryptocurrencies. It includes a dropdown menu that allows you to select the cryptocurrency (e.g., Ethereum, Dogecoin, Solana). To use the line-chart component, follow these steps:
- Open the dashboard page where you want to add the line-chart component.
- Locate the dropdown menu labeled "Select Coin" and choose the desired cryptocurrency.
- The line chart will dynamically update to show the price trends for the selected coin over a specific time period.
The Pyor Crypto Dashboard allows non-tech users to create dashboard pages with customizable layouts. You can arrange components in row-column compositions or use predefined layout templates. To create a dashboard page:
- Navigate to the dashboard creation section.
- Choose whether you want to create a custom layout or use a predefined template.
- Drag and drop components onto the layout canvas.
- Configure each component's settings and data sources as needed.
The application handles state management of dropdown choices across page refreshes. Additionally, it supports multiple instances of the same component on a single page. For example, if you have two line-chart components, each can have its own state and display different cryptocurrency price trends simultaneously.
- Next.js: A React framework for building server-rendered and static websites.
- Material UI: A popular React UI framework for creating stylish and responsive user interfaces.
- Apache ECharts: A powerful charting and data visualization library for web applications.
You have 2 days to complete the assignment. Please make sure to follow the provided instructions and guidelines to ensure timely submission.
Happy dashboarding with Pyor Crypto Dashboard! 🚀📊