This guide provides step-by-step instructions for deploying REChain in various environments.
- Flutter SDK 3.32.8 or higher
- Git
- Docker (optional)
- Kubernetes (for production deployments)
git clone https://github.com/sorydima/REChain-.git
cd REChain-flutter pub getcp config.sample.json config.json
# Edit config.json with your settingsflutter rundocker build -t rechain:latest .docker run -p 8080:8080 rechain:latestkubectl apply -f k8s/kubectl get pods
kubectl get serviceseb init rechain
eb create production-envaws ecs create-cluster --cluster-name rechain-cluster
aws ecs create-service --cluster rechain-cluster --service-name rechain-service --task-definition rechain-taskgcloud app deploygcloud run deploy --source .az webapp up --name rechain --runtime "DOTNET|6.0"flutter build apk --release
# Upload to Google Play Storeflutter build ios --release
# Upload to App Store Connectflutter build web --release
# Deploy to web server or CDNflutter build linux --release
# Package and distributeflutter build windows --release
# Package installerexport MATRIX_HOMESERVER_URL=https://matrix.org
export IPFS_GATEWAY_URL=https://ipfs.io
export BLOCKCHAIN_RPC_URL=https://mainnet.infura.io/v3/YOUR_PROJECT_ID{
"database": {
"host": "localhost",
"port": 5432,
"database": "rechain",
"username": "rechain_user",
"password": "secure_password"
}
}export LOG_LEVEL=info
export LOG_FILE=/var/log/rechain.logcurl http://localhost:8080/healthkubectl scale deployment rechain --replicas=5Configure load balancer to distribute traffic across instances.
pg_dump rechain > rechain_backup.sql# Backup IPFS data
ipfs files ls > ipfs_backup.txtSee TROUBLESHOOTING.md for common deployment issues.
This deployment guide is part of the REChain documentation suite.