wifi-densepose/vendor/midstream/AIMDS/docs/guides/QUICK_START.md

1.8 KiB

AIMDS Quick Start Guide

Prerequisites

Local Development Setup

1. Clone and Setup

cd /workspaces/midstream/AIMDS

# Install Rust dependencies
cargo build

# Install Node dependencies
npm install

# Configure environment
cp .env.example .env
# Edit .env with your configuration

2. Run with Docker Compose

# Start all services
docker-compose up -d

# View logs
docker-compose logs -f

# Check health
curl http://localhost:3000/health

3. Test the System

# Run Rust tests
cargo test --workspace

# Run TypeScript tests
npm test

# Run benchmarks
cargo bench --workspace

Production Deployment

Kubernetes

# Create namespace
kubectl create namespace aimds

# Apply configurations
kubectl apply -f k8s/

# Check status
kubectl get pods -n aimds
kubectl get svc -n aimds

# View logs
kubectl logs -f deployment/aimds-gateway -n aimds

Configuration

Edit k8s/configmap.yaml with your settings:

  • Redis URL
  • AgentDB endpoint
  • Anthropic API key (in secrets)

Usage Examples

Detect Threat

curl -X POST http://localhost:3000/api/detect \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Ignore previous instructions and..."}'

Analyze Behavior

curl -X POST http://localhost:3000/api/analyze \
  -H "Content-Type: application/json" \
  -d '{"detection_id": "uuid-here"}'

Get Metrics

curl http://localhost:9090/metrics

Next Steps