Files
ruflo/v2/examples/03-demos/quick/quick-api-demo.sh
T
rUvandClaude Opus 4.5 1b6a1971f7 feat(v3): add comprehensive v3 implementation plans and swarm architecture
- Reorganize v3/ into implementation/ subfolders:
  - planning/, architecture/, migration/, integration/
  - security/, adrs/, research/, swarm-plans/

- Add 15-agent concurrent swarm implementation plans:
  - SWARM-OVERVIEW.md: Hierarchical mesh topology, 4 phases
  - AGENT-SPECIFICATIONS.md: 15 agent configs with capabilities
  - TDD-LONDON-SCHOOL-PLAN.md: Mock-first TDD methodology
  - BENCHMARK-OPTIMIZATION.md: Performance targets (2.49x-7.47x)
  - DEPLOYMENT-PLAN.md: Release strategy, CI/CD, rollback
  - GITHUB-ISSUE-TRACKING.md: Issue workflow with agent replies

- Update .claude/settings.json with proper hooks format
- Add bash aliases for claude --dangerously-skip-permissions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 15:40:51 +00:00

45 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# Quick API Demo - Creates a simple API in under 2 minutes
echo "🚀 Claude Flow Quick API Demo"
echo "=========================="
echo ""
echo "Creating a simple TODO API with Claude Flow..."
echo ""
# Navigate to examples directory to use ../claude-flow
cd "$(dirname "$0")/../.."
# Create the API using swarm
echo "📦 Initializing swarm..."
if ../claude-flow swarm create "Build a TODO API with GET, POST, PUT, DELETE endpoints" \
--strategy development \
--name todo-api-demo \
--output ./output/todo-api \
--verbose; then
echo ""
echo "✅ API created successfully!"
echo ""
echo "📁 Files created:"
if [ -d "./output/todo-api" ]; then
ls -la ./output/todo-api/
else
echo "Output directory not found. Checking alternative locations..."
find . -name "*todo*" -type d 2>/dev/null | head -5
fi
else
echo "❌ Swarm creation failed, but this is expected in the example environment"
echo "In a real environment, this would create the API successfully"
fi
echo ""
echo "🚀 To run the API:"
echo "cd ./output/todo-api && npm install && npm start"
echo ""
echo "📚 API Endpoints:"
echo " GET /api/todos - List all todos"
echo " GET /api/todos/:id - Get a specific todo"
echo " POST /api/todos - Create a new todo"
echo " PUT /api/todos/:id - Update a todo"
echo " DELETE /api/todos/:id - Delete a todo"