Get Started
Note: All scripts are located in the scripts/ directory and should be run from the project root.
Running the System
Option 1: Using Published Docker Images (Recommended)
# Start with local Ethereum node
cargo make start-local
Option 2: Building from Source
# Build all Docker images from source
cargo make build-docker-images
# Start the system
cargo make start-local
Option 3: Running with Integration Tests
# Start with tests enabled
cargo make start-local test
Testing
Run All Tests
cargo nextest run
Run Integration Tests
cd integration-tests
export VITE_INTUITION_CONTRACT_ADDRESS=0x....
pnpm test src/follow.test.ts
Run Specific Test Suites
# Test account operations
pnpm test src/create-person.test.ts
# Test vault operations
pnpm test src/vaults.test.ts
# Test AI agents
pnpm test src/ai-agents.test.ts
Development Testing
CLI Tool
# Run the CLI to verify latest data
./scripts/cli.sh
Code Quality
# Format code
cargo make fmt
# Run linter
cargo make clippy
# Run all checks
cargo make check
Database Operations
# Start services and run migrations
cargo make start-docker-and-migrate
# Manual migration (if needed)
cp .env.sample .env
source .env
Monitoring and Observability
Logging
The system includes comprehensive logging capabilities:
Features:
- Structured JSON Logging: All services output machine-readable logs
- Container Logs: Direct access to service logs via Docker
- Log Filtering: Easy filtering by log level and service
Benefits:
- Debugging: Quickly find and analyze issues across services
- Performance Monitoring: Track service performance and bottlenecks
- Audit Trail: Complete visibility into system operations
Getting Started:
- Start the system:
cargo make start-local - View logs:
docker logs <service_name> - Filter logs:
docker logs <service_name> | grep '"level":"INFO"'
JSON Logging: All consumer services output structured JSON logs with the following fields:
timestamp: ISO 8601 timestamplevel: Log level (INFO, WARN, ERROR, DEBUG)fields.message: Log message contenttarget: Module pathfilename: Source file nameline_number: Line number in source filethreadId: Thread identifier
Viewing Logs:
# View container logs directly
docker logs decoded_consumer | grep '"level":"INFO"'
docker logs resolver_consumer | grep '"level":"ERROR"'
docker logs ipfs_upload_consumer | grep '"level":"WARN"'
Troubleshooting
Common Issues
- Database connection errors: Ensure PostgreSQL is running and credentials are correct
- RPC endpoint issues: Verify your Alchemy endpoints are valid and have sufficient quota
- Docker resource limits: Ensure Docker has sufficient memory and CPU allocation
Getting Help
- Check the intuition-rs repository for latest updates
- Review the DeepWiki documentation for detailed technical information
- Join the Intuition community for support
Next Steps
Once your node is running successfully:
- Monitor the logs to ensure all services are healthy
- Test the CLI tool to verify data ingestion
- Configure monitoring for production deployments
- Join the network and start contributing to the Intuition ecosystem
The node implementation is under active development, so check the repository regularly for updates and new features.