Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.21 KB

File metadata and controls

51 lines (38 loc) · 1.21 KB

Spot Command Center — Quick Start

Prerequisites

  • Python 3.12+ with venv
  • Node.js 18+
  • Spot robot on the network

1. Start the Backend (port 8000)

First, copy the example env and fill in your credentials:

cd ~/projects/SpotCommandCenter/backend
cp .env.example .env
# Edit .env with your robot IP, credentials, and JWT secret
nano .env
source venv/bin/activate
python app.py

2. Start the Frontend (port 3000)

cd ~/projects/SpotCommandCenter/frontendp
npm start

3. Open the App

Go to http://localhost:3000 in your browser.

Login: Use the credentials you set in backend/.env (APP_USER_ADMIN)

Configuration

Edit backend/.env to change settings:

Variable Default Description
ROBOT_IP 192.168.1.100 Spot's IP address
SERVER_PORT 8000 Backend API port
MOCK_ROBOT False Use mock robot (no Spot)
JWT_SECRET (set in .env) Auth token secret

Stopping

# Kill backend
pkill -f "python app.py"

# Kill frontend
pkill -f "react-scripts"