ETBNET11
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v26View latest version
A real-time cryptocurrency dashboard built on Val Town that displays market data for the top cryptocurrencies.
- Real-time Data: Displays current prices, market caps, and 24-hour changes for top cryptocurrencies
- Detailed Information: Click on any cryptocurrency to view detailed information including price charts and descriptions
- Search Functionality: Filter cryptocurrencies by name or symbol
- Auto-refresh: Data automatically refreshes every 60 seconds
- Responsive Design: Works on desktop and mobile devices
This project uses:
- CoinGecko API: For fetching cryptocurrency market data
- Tailwind CSS: For styling the UI
- Chart.js: For rendering price charts
- Font Awesome: For icons
The application provides the following API endpoints:
GET /api/crypto: Returns a list of top cryptocurrencies (default: 50)- Query parameters:
limit: Number of cryptocurrencies to return (e.g.,/api/crypto?limit=10)
- Query parameters:
GET /api/crypto/:id: Returns detailed information about a specific cryptocurrency- Example:
/api/crypto/bitcoin
- Example:
GET /api/btc: Returns Bitcoin data (for backward compatibility)
The application includes mock data that is used as a fallback when the CoinGecko API is unavailable or rate-limited. This ensures that the dashboard remains functional even when external services are down.
Potential enhancements for this project:
- Add historical price data for more accurate charts
- Implement portfolio tracking functionality
- Add price alerts
- Include more detailed technical indicators
- Support for additional currencies (EUR, JPY, etc.)