Get the Crypto Analytics Dashboard up and running in 3 steps!
- ✅ Node.js 22.x installed (you have this)
- ✅ InfluxDB running with crypto data (from lcw-fetch project)
- ✅ Environment variables configured in
.env
Your .env file should have:
INFLUXDB_URL=http://localhost:8086
INFLUXDB_TOKEN=your_super_secret_admin_token
INFLUXDB_ORG=cryptocurrency
INFLUXDB_BUCKET=crypto_data
PORT=3001
VITE_API_URL=http://localhost:3001Open a terminal and run:
cd /home/john/code/analytics-front
npm run serverYou should see:
⚡️[server]: Server is running at http://localhost:3001
Test it: curl http://localhost:3001/health
Open a second terminal and run:
cd /home/john/code/analytics-front
npm run devYou should see:
VITE v7.1.7 ready in xxx ms
➜ Local: http://localhost:5173/
Navigate to http://localhost:5173/
You should see:
- Market overview stats (Total Market Cap, Volume, Liquidity, BTC Dominance)
- A table with top cryptocurrencies
- Real-time price data updating every 60 seconds
Problem: No connection to backend API
Solution:
- Make sure backend is running (
npm run server) - Check
http://localhost:3001/healthreturns{"status":"ok"}
Problem: Backend can't connect to InfluxDB
Solution:
- Verify InfluxDB is running:
curl http://localhost:8086/health - Check credentials in
.envmatch your InfluxDB setup - Ensure lcw-fetch has populated data
Problem: InfluxDB has no data yet
Solution:
cd /home/john/code/lcw-fetch
python -m lcw_fetcher.main run-onceWait a minute, then refresh your dashboard.
- Coins data refreshes every 60 seconds
- Market overview refreshes every 60 seconds
- History data refreshes every 5 minutes
Use the search box to filter coins by name or symbol (e.g., "Bitcoin", "BTC")
Test API endpoints directly:
# Get top 10 coins
curl http://localhost:3001/api/coins/top?limit=10
# Get Bitcoin data
curl http://localhost:3001/api/coins/BTC
# Get market overview
curl http://localhost:3001/api/market/overviewOnce running, you can:
- Customize the number of coins displayed
- Add price charts using the history endpoint
- Integrate blockchain analytics from the blockchain_data project
- Deploy to production
# Build frontend
npm run build
# Build backend
npm run server:build
# Start production server
npm run server:start
# Serve frontend (use nginx, serve, or similar)
npx serve -s distEnjoy your crypto analytics dashboard! 🚀