Crypto Dashboard
Retrieve real-time data crypto price to make a dashboard
What it does
Our application serves as a comprehensive cryptocurrency dashboard, designed to provide users with real-time insights into cryptocurrency prices fetched from the Gemini API. This dashboard is split into a backend powered by Node.js and Express and a frontend developed using React.
The backend operates on port 5000 and acts as a mediator between the frontend and the Gemini API. Key components of the backend include:
- Utilizes `express.json()` and `express.urlencoded()` to parse incoming request bodies. These are configured with a limit of 10MB, ensuring compatibility with potentially larger payloads.
- Implements CORS (Cross-Origin Resource Sharing) using the `cors` middleware to facilitate secure cross-origin requests from the frontend.
- Defines a GET endpoint (`/api/crypto`) responsible for fetching cryptocurrency price data from the Gemini API (`https://api.gemini.com/v1/pricefeed`).
- Utilizes Axios for making asynchronous HTTP requests to the Gemini API. These requests include a required API key (`X-GEMINI-APIKEY`), securely stored as an environment variable (`process.env.GEMINI_API_KEY`).
Built with
- Web/Chrome
Team
By
Nathan
From
New Zealand