You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add comprehensive setup guide and troubleshooting section
## Summary
This PR significantly improves the developer experience for local Kleros v2 setup by adding missing configuration steps and comprehensive troubleshooting guidance.
## What's Added
### 🔧 Environment Setup Section
- **API key requirements**: Step-by-step instructions for Alchemy and WalletConnect setup
- **Environment file configuration**: Complete `.env.local` file creation with all required variables
- **Alternative configuration methods**: Instructions for updating existing `.env.local.public`
### 🛠️ Comprehensive Troubleshooting Section
- **8 common setup issues** with exact error messages and copy-paste solutions:
1. Volta yarn version errors (`volta pin yarn`)
2. Module resolution errors (kleros-app build dependency)
3. Environment variable errors (missing API keys)
4. Graph Node fulltext search errors (schema modification)
5. GraphQL code generation failures (endpoint testing)
6. Docker/Graph Node connection issues (port conflicts)
7. Web frontend loading issues (browser debugging)
8. Simulate task errors (working alternatives)
## Issues Addressed
This PR addresses real-world problems that block new contributors:
- **Missing environment variables** cause runtime errors with no clear guidance
- **Volta configuration issues** prevent yarn commands from working
- **Missing build dependencies** cause module resolution failures
- **Broken simulation commands** (`simulate:all` task doesn't exist)
- **No troubleshooting guidance** when things go wrong
- **Port number discrepancies** between docs and actual behavior
## Testing
These improvements are based on actual setup experience where each documented issue was encountered and resolved during a fresh repository clone and setup process.
## Impact
This change will:
- ✅ **Reduce onboarding friction** for new developers
- ✅ **Save hours of debugging time** with ready solutions
- ✅ **Improve developer experience** with clear, actionable guidance
- ✅ **Prevent common setup failures** that discourage contributions
## Breaking Changes
None. This is purely additive documentation that enhances the existing setup process without changing any functionality.
0 commit comments