2.2 KiB
2.2 KiB
โก STELLAR PRICE ORACLE - ULTRA SIMPLE COMMANDS
===========================================
๐ฏ COPY-PASTE THESE COMMANDS:
===========================================
1๏ธโฃ SETUP (run once)
cd oracle-service && npm install
cd ../frontend && npm install
cd ..
2๏ธโฃ START ORACLE (Terminal 1)
cd oracle-service npm start
3๏ธโฃ START FRONTEND (Terminal 2)
cd frontend npm run dev
4๏ธโฃ OPEN BROWSER
http://localhost:5173
===========================================
๐ ONE-COMMAND STARTUP SCRIPT
===========================================
cat > run.sh << 'EOF'
#!/bin/bash
echo "๐ Starting Stellar Price Oracle..."
(cd oracle-service && npm start) &
sleep 3
cd frontend && npm run dev
EOF
chmod +x run.sh ./run.sh
===========================================
๐งช TEST IT WORKS
===========================================
curl http://localhost:3001/health curl http://localhost:3001/prices
Should see:
โ Oracle: {"status":"healthy",...}
โ Prices: {"prices":{"BTC":{"price":67000...}
===========================================
๐ญ DEMO WITHOUT CONTRACTS
===========================================
Your oracle works perfectly without deploying contracts!
It uses:
โ Real DexScreener price data
โ Simulated Stellar transactions
โ Professional UI/UX
โ Cost comparison ($0.00001 vs $500)
Perfect for hackathon demos! ๐
===========================================
๐ฑ MOBILE QUICK TEST
===========================================
Get your computer's IP address
ipconfig getifaddr en0 # Mac hostname -I | cut -d' ' -f1 # Linux
Then access from mobile:
http://YOUR_IP:5173
===========================================
๐ STOP EVERYTHING
===========================================
pkill -f "npm start" pkill -f "npm run dev"
===========================================
๐ฅ ULTRA-FAST DEMO SETUP
===========================================
If you need to demo in 30 seconds:
1. Copy all project files to computer
2. Run these 4 commands:
cd stellar-price-oracle cd oracle-service && npm install && npm start & cd ../frontend && npm install && npm run dev & sleep 5 && open http://localhost:5173