# 1. Install all dependencies (Python + npm)
./install.sh
# 2. Configure AWS credentials
nano ~/.aws/credentials
# 3. Test AWS Bedrock connection
python test_bedrock_agents.py
# 4. Start the application
./run_app.sh./run_app.sh- Starts backend on http://localhost:8000
- Starts frontend on http://localhost:5173
- Press Ctrl+C to stop both
# Backend only
python -m server.main
# Frontend only (in another terminal)
cd ui && npm run dev# Test AI agents
python test_bedrock_agents.py
# Test API endpoints
curl http://localhost:8000/api/devices
# Check database
sqlite3 flexdeploy.db "SELECT COUNT(*) FROM devices;"# Setup configuration
./setup_config.sh
# View current configuration
python -c "from server.config import get_config; get_config().print_config()"
# Edit app settings
nano config.ini
# Edit AWS credentials
nano ~/.aws/credentials# Install Python packages
uv pip install -e .
# or
pip install -e .
# Install npm packages
cd ui && npm install
# Update packages
uv pip install --upgrade -e .
cd ui && npm update# View server logs
tail -f server.log
# View UI logs
tail -f ui.log
# Check running processes
ps aux | grep python
ps aux | grep node
# Clear logs
rm server.log ui.log
# Restart services
# Press Ctrl+C to stop, then run:
./run_app.sh# Check AWS credentials
aws sts get-caller-identity --profile <profile_id>
# Test AWS Bedrock access
aws bedrock list-foundation-models --region us-east-2 --profile <profile_id>
# Verify config files
ls -la config.ini ~/.aws/credentials
# Check Python version
python3 --version # Should be 3.11+
# Check Node version
node --version # Should be 18+
# Reinstall packages
uv pip install --force-reinstall -e .
cd ui && rm -rf node_modules && npm install- Frontend: http://localhost:5173
- Backend: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Redoc: http://localhost:8000/redoc
curl -X POST http://localhost:8000/api/deployments \
-H "Content-Type: application/json" \
-d '{"deploymentName": "Test Deploy", "status": "Not Started"}'curl -X POST http://localhost:8000/api/ai/categorize-devices \
-H "Content-Type: application/json" \
-d '{"deviceIds": null}' # null = all devicescurl -X POST http://localhost:8000/api/ai/analyze-failure \
-H "Content-Type: application/json" \
-d '{"deploymentId": "DEP-001", "ringName": "Ring 1 - Low Risk Devices"}'curl -X POST http://localhost:8000/api/ai/gating-factors \
-H "Content-Type: application/json" \
-d '{"naturalLanguageInput": "Deploy to stable devices only"}'All documentation is consolidated in README.md
Key sections:
- Architecture
- Installation
- Configuration
- AI Agents
- API Documentation
- Troubleshooting
config.ini # App configuration
~/.aws/credentials # AWS credentials
flexdeploy.db # Database (root directory)
server.log # Backend logs
ui.log # Frontend logs
Server won't start:
lsof -ti:8000 | xargs kill -9 # Kill process on port 8000
python -m server.mainUI won't start:
lsof -ti:5173 | xargs kill -9 # Kill process on port 5173
cd ui && npm run devDatabase locked:
fuser flexdeploy.db # Find process using DB
# Kill the process, then restartAWS credentials expired:
aws sso login
# Or get new credentials from SSO portal- Check README.md for comprehensive documentation
- Review logs:
tail -f server.log ui.log - Test components:
python test_bedrock_agents.py - Verify setup:
./install.sh(safe to re-run)
For full documentation, see README.md