-
Notifications
You must be signed in to change notification settings - Fork 0
DEV_ENVIRONMENT.md
This guide explains how to configure a local development environment for contributing to the CeloHT ecosystem.
A consistent development environment helps ensure that every contributor can build, test, and maintain the project efficiently.
- Git 2.40+
- Node.js 20 LTS or newer
- npm 10+ or pnpm
- Visual Studio Code (recommended)
- Ubuntu 24.04 LTS or newer
- macOS (latest stable)
- Windows 11 with WSL2
Install the following extensions:
- ESLint
- Prettier
- GitHub Pull Requests
- GitLens
- Tailwind CSS IntelliSense
- Solidity
- Error Lens
- Markdown All in One
- EditorConfig
git clone https://github.com/Celo-HT/CeloHT.git
cd CeloHTUsing npm
npm installUsing pnpm
pnpm installCreate:
.env.local
Example:
NEXT_PUBLIC_NETWORK=alfajores
NEXT_PUBLIC_RPC_URL=https://alfajores-forno.celo-testnet.org
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=YOUR_PROJECT_IDNever commit .env files.
npm run devOpen:
http://localhost:3000
Run ESLint:
npm run lintAutomatically fix issues:
npm run lint -- --fixFormat the project:
npm run formatCeloHT uses Prettier to maintain a consistent code style.
npm run typecheckEvery Pull Request should pass TypeScript validation.
Run all tests:
npm testRun coverage:
npm run coverageCompile contracts:
npx hardhat compileRun contract tests:
npx hardhat testCreate a feature branch:
git checkout -b feature/my-featureExamples:
feature/education-dashboard
fix/mobile-menu
docs/api-reference
Follow Conventional Commits.
Examples:
feat: add education dashboard
fix: resolve wallet connection issue
docs: improve API reference
refactor: simplify agent service
Verify:
- Documentation updated
- Lint passes
- Tests pass
- Build succeeds
- No merge conflicts
Install dependencies
npm installRun development server
npm run devBuild
npm run buildRun tests
npm testLint
npm run lintType checking
npm run typecheckCompile contracts
npx hardhat compileIf something goes wrong:
- Check the terminal output.
- Verify environment variables.
- Update dependencies.
- Ensure Node.js is supported.
- Review GitHub Issues.
- Keep branches small.
- Write descriptive commits.
- Document new features.
- Never commit secrets.
- Keep dependencies updated.
- Review code before submitting.
Planned improvements include:
- Development Docker environment
- Dev Containers (VS Code)
- Nix development environment
- GitHub Codespaces support
- Automated local setup script
- One-command project bootstrap
A well-configured development environment enables contributors to build, test, and improve CeloHT efficiently while maintaining the project's standards for quality, security, and collaboration.
© 2026 CeloHT - Open Source. Global Impact. Licensed under MIT.
Welcome to the official CeloHT documentation. This knowledge base provides comprehensive documentation for users, developers, contributors, partners, researchers, and ecosystem participants. Explore architecture, APIs, smart contracts, developer guides, governance, security, educational resources, roadmap, transparency reports, and community initiatives. Built with openness, collaboration, and long-term sustainability in mind, the CeloHT documentation follows international open-source documentation standards to make learning, building, and contributing accessible to everyone.