Quick Start Guide
Welcome to Quantum Platform! This guide will help you get up and running in just a few minutes.
What You'll Build
In this quick start, you'll:
- Set up your development environment
- Create your first intent
- Execute a simple workflow
- Monitor the results
Prerequisites
Before you begin, ensure you have:
- Node.js 18+ installed
- Python 3.10+ installed
- Docker and Docker Compose installed
- Git installed
Step 1: Clone the Repository
git clone https://github.com/centrex-ai/quantum-platform.git
cd quantum-platform
Step 2: Start the Development Environment
The Quantum Platform includes a complete local development environment with all necessary services.
# Start all services
make up
# Wait for services to be ready
sleep 10
# Check service status
docker compose -f infra/local/docker-compose.yml ps
You should see:
- PostgreSQL running on port 5432
- Redis running on port 6379
- API Gateway running on port 8000
- Web Application running on port 3000
Step 3: Access the Platform
Open your browser and navigate to:
- Web Application: http://localhost:3000
- API Documentation: http://localhost:8000/api/v1/docs
Step 4: Create Your First Intent
Let's create a simple intent that sends a welcome email to new users.
Using the Web Interface
- Navigate to http://localhost:3000
- Click "Create Intent"
- Fill in the intent details:
- Name:
welcome-email - Description:
Send welcome email to new users
- Name:
- Define the workflow steps:
{
"type": "workflow",
"description": "Send welcome email to new users",
"steps": [
{
"id": "send-welcome-email",
"module": "email-service",
"parameters": {
"to": "{{user.email}}",
"subject": "Welcome to Quantum Platform!",
"template": "welcome",
"data": {
"name": "{{user.name}}",
"platform": "Quantum Platform"
}
}
}
]
} - Click "Save Intent"
Using the API
# Create intent via API
curl -X POST "http://localhost:8000/api/v1/intents" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-jwt-token" \
-d '{
"name": "welcome-email",
"definition": {
"type": "workflow",
"description": "Send welcome email to new users",
"steps": [
{
"id": "send-welcome-email",
"module": "email-service",
"parameters": {
"to": "{{user.email}}",
"subject": "Welcome to Quantum Platform!",
"template": "welcome",
"data": {
"name": "{{user.name}}",
"platform": "Quantum Platform"
}
}
}
]
}
}'
Step 5: Execute the Workflow
Now let's execute the intent with some test data.
Using the Web Interface
- Navigate to the "Workflows" section
- Click "Execute Workflow"
- Select the
welcome-emailintent - Provide test data:
{
"user": {
"email": "john@example.com",
"name": "John Doe"
}
} - Click "Execute"
Using the API
# Execute workflow via API
curl -X POST "http://localhost:8000/api/v1/workflows" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-jwt-token" \
-d '{
"intent_id": "your-intent-id",
"parameters": {
"user": {
"email": "john@example.com",
"name": "John Doe"
}
}
}'
Step 6: Monitor the Execution
Using the Web Interface
- Navigate to the "Workflows" section
- Find your workflow execution
- Click on it to see detailed execution steps
- Monitor the progress in real-time
Using the API
# Get workflow status
curl -X GET "http://localhost:8000/api/v1/workflows/your-workflow-id" \
-H "Authorization: Bearer your-jwt-token"
Step 7: Explore the Platform
Now that you have a working intent, explore the platform:
Intent Management
- List Intents: View all your intents
- Version Control: Manage intent versions
- Validation: Validate intent definitions
- Testing: Test intents with sample data
Workflow Monitoring
- Execution History: View past executions
- Real-time Status: Monitor running workflows
- Error Handling: Debug failed executions
- Performance Metrics: Track execution times
Module Development
- Create Modules: Build custom business logic
- Register Capabilities: Define module capabilities
- Health Monitoring: Monitor module health
- Configuration: Manage module settings
Next Steps
Congratulations! You've successfully created and executed your first intent. Here's what to explore next:
1. Learn More About Intents
2. Explore Advanced Features
3. Deploy to Production
4. Join the Community
Troubleshooting
Common Issues
Services not starting:
# Check Docker status
docker ps
# Restart services
make down
make up
Database connection issues:
# Check database logs
docker logs quantum-postgres
# Reset database
make clean
make up
API authentication errors:
- Ensure you have a valid JWT token
- Check the token expiration time
- Verify the token has the required permissions
Getting Help
If you run into issues:
- Check the Development Guidelines
- Search GitHub Issues
- Review the Architecture Overview
- Create a GitHub Issue
What's Next?
You're now ready to start building with Quantum Platform! The platform is designed to scale with your needs, from simple automation scripts to complex enterprise workflows.
Key Concepts to Learn
- Intents: Declarative specifications of what you want to achieve
- Workflows: Orchestrated sequences of operations
- Modules: Pluggable business logic components
- Tenants: Isolated environments for different organizations
- Events: Asynchronous messaging and notifications
Recommended Learning Path
- Start Simple: Begin with basic intents and workflows
- Add Complexity: Gradually add more sophisticated logic
- Scale Up: Implement multi-tenant and enterprise features
- Optimize: Focus on performance and reliability
- Deploy: Move to production with confidence
Ready to transform your organization's approach to system orchestration? Let's build something amazing together! 🚀