stellar-oracle/ULTRA_SIMPLE_COMMANDS.md
2025-06-22 06:45:56 +03:00

2.2 KiB
Raw Permalink Blame History

โšก 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

๐ŸŽ‰ DONE! Oracle running in 30 seconds!