1.1 KiB
1.1 KiB
Contributing to ChainID 138 Explorer Platform
Thank you for your interest in contributing!
Development Setup
-
Prerequisites
- Go 1.21+
- Node.js 20+
- Docker and Docker Compose
- PostgreSQL 16+ (or use Docker)
- Elasticsearch/OpenSearch
-
Initial Setup
./scripts/setup.sh -
Start Development Environment
./scripts/run-dev.sh
Code Style
Go
- Follow standard Go formatting (
go fmt) - Run
go vetbefore committing - Add tests for new features
TypeScript/React
- Use TypeScript for all new code
- Follow Next.js conventions
- Use functional components with hooks
- Run
npm run lintbefore committing
Testing
Backend
cd backend
go test ./...
Frontend
cd frontend
npm test
Pull Requests
- Create a feature branch from
main - Make your changes
- Add tests
- Ensure all tests pass
- Submit a pull request
Architecture
See docs/specs/ for detailed technical specifications.
Questions?
Open an issue or contact the maintainers.