LocalStack Quick Start Guide¶
Get nexus-backend running with LocalStack in 3 steps.
Prerequisites¶
- Docker Desktop installed and running
- AWS CLI installed (
aws --version) - Python 3.9+ with pip
Quick Start¶
Step 1: Start LocalStack¶
Windows (PowerShell):
Linux/macOS:
Wait for "LocalStack is ready!" message.
Step 2: Configure Environment¶
Copy the example environment file:
Windows:
Linux/macOS:
Or set environment variables:
Step 3: Start the API Server¶
Verify Setup¶
Test LocalStack health:
Expected response:
{
"status": "healthy",
"endpoint": "http://localhost:4566",
"services": {"dynamodb": "running", "s3": "running"}
}
Service URLs¶
| Service | URL | Purpose |
|---|---|---|
| API Server | http://localhost:8000 | nexus-backend API |
| LocalStack | http://localhost:4566 | AWS services |
| DynamoDB Admin | http://localhost:8001 | Database browser |
Essential Commands¶
# Test LocalStack
.\scripts\test-localstack.ps1 # Windows
./scripts/test-localstack.sh # Linux
# Seed test data
python scripts/seed-localstack-data.py
# Stop LocalStack
.\scripts\stop-localstack.ps1 # Windows
./scripts/stop-localstack.sh # Linux
# Stop and remove data
.\scripts\stop-localstack.ps1 -Volumes # Windows
./scripts/stop-localstack.sh --volumes # Linux
Troubleshooting¶
LocalStack won't start:
Connection refused:
Tables not created:
Next Steps¶
- Full Setup Guide - Detailed instructions
- Reference Guide - Command reference
- API Documentation - API endpoints