RATLR is an AI-powered token deployment and analytics platform that enables users to deploy various token standards (ERC-20, ERC-721, ERC-1155) through messaging platforms while providing advanced analytics and risk assessment.
packages/
├── core/ # Shared utilities, types, and AI services
├── bots/ # Discord and Telegram bot implementations
├── contracts/ # Smart contract development
└── frontend/ # React dashboard application
- Docker >= 20.10.0
- Docker Compose >= 2.0.0
- Git
- Clone the repository:
git clone <repository-url>
cd RATLR- Set up environment variables:
cp .env.example .env
# Edit .env with your configuration- Start the development environment:
docker-compose up -d- URL: http://localhost:3000
- Development server with hot reload
- Connects to blockchain and MQTT services
- Automated token deployment through chat commands
- Real-time notifications and alerts
- Market analytics and insights
- Hardhat development network: http://localhost:8545
- Automated deployment and verification
- Comprehensive testing suite
- Default port: 1883
- WebSocket port: 9001
- Persistent message storage
- API port: 5001
- Gateway: http://localhost:8080
- Distributed storage for token data
- TensorFlow Serving: http://localhost:8501
- Real-time market analysis
- Risk assessment and fraud detection
# Start specific services
docker-compose up frontend
docker-compose up discord_bot telegram_bot
docker-compose up contracts
# View logs
docker-compose logs -f [service_name]# Run all tests
docker-compose run --rm contracts npm test
docker-compose run --rm bots npm test
docker-compose run --rm frontend npm test
# Run specific test suite
docker-compose run --rm [service] npm test [test-name]# Build all services
docker-compose -f docker-compose.prod.yml build
# Push images (if using container registry)
docker-compose -f docker-compose.prod.yml push- Configure production environment:
cp .env.example .env.prod
# Edit .env.prod with production values- Deploy using Docker Compose:
docker-compose -f docker-compose.prod.yml up -d- Prometheus metrics: http://localhost:9090
- Grafana dashboards: http://localhost:3001
- Service health checks available for all containers
# Add a package to a service
docker-compose run --rm [service] npm install [package]
# Update package.json and rebuild
docker-compose build [service]# Access SQLite database
docker-compose exec sqlite sqlite3 /data/ratlr.db
# Backup database
docker-compose exec sqlite sqlite3 /data/ratlr.db ".backup '/data/backup.db'"# View MQTT logs
docker-compose logs -f mqtt
# Test MQTT connection
docker-compose exec mqtt mosquitto_sub -t "test"-
Container startup failures
- Check logs:
docker-compose logs [service] - Verify environment variables
- Ensure required ports are available
- Check logs:
-
Network connectivity
- Verify network creation:
docker network ls - Check container connectivity:
docker network inspect ratlr_network
- Verify network creation:
-
Data persistence
- Check volume mounts:
docker volume ls - Verify permissions on host directories
- Check volume mounts:
# Start services with debug output
docker-compose --verbose up
# Access container shell
docker-compose exec [service] sh- Create a feature branch:
git checkout -b feature/your-feature-name- Make changes and test:
docker-compose up -d
docker-compose run --rm [service] npm test- Submit pull request:
git push origin feature/your-feature-namePrivate - All rights reserved
For support, please contact the development team.