Welcome! We’re excited to have you contribute to DeepCoin, an AI-powered DeFi platform. This guide will help you get started, follow best practices, and submit high-quality contributions—especially for new integrations.
- Getting Started
- Project Structure
- Adding Integrations
- Coding Standards
- Testing
- Submitting Changes
- Code Review Process
- Contact & Discussion
- Fork the repository and clone your fork.
- Install dependencies:
pnpm install # or npm/yarn/bun - Set up environment variables:
- Copy
.env.sampleto.env.localand fill in required API keys (OKX, Solana, Nero, Blockchair, etc).
- Copy
- Run the development server:
pnpm dev # or npm run dev, yarn dev, bun dev - Open http://localhost:3000 in your browser.
src/app/— Next.js pages and API routessrc/components/— React componentssrc/hooks/— Custom React hookssrc/lib/— Integrations, services, and utilitiessrc/provider/— Context providerspublic/— Static assets
We welcome new blockchain, wallet, or data integrations! To add one:
- Create a new service or API wrapper in
src/lib/services/orsrc/lib/api/. - Add UI components (if needed) in
src/components/. - Add API routes in
src/app/api/for backend logic. - Update environment variables in
.env.sampleif new keys are required. - Document your integration in the README and/or a dedicated markdown file.
- Write tests for your integration logic.
- Use TypeScript for all code.
- Follow the existing file and folder structure.
- Use ESLint and Prettier for code style (run
pnpm lint). - Write clear, descriptive comments and documentation.
- Prefer functional components and React hooks.
- Add unit and integration tests for new features.
- Use existing test patterns and libraries.
- Ensure all tests pass before submitting a PR.
- Create a new branch for your feature or fix.
- Commit your changes with clear, descriptive messages.
- Push your branch to your fork.
- Open a Pull Request against the main repository.
- Describe your changes and reference any related issues.
- All PRs require review and approval.
- Address feedback promptly.
- Squash commits if requested.
- PRs must pass all CI checks before merging.
- For questions, open an issue or start a discussion in the repository.
- For urgent matters, contact maintainers directly (see README for links).
Thank you for contributing to DeepCoin!