We love your input! We want to make contributing to CodeCandy as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
- Fork the repo and create your branch from
main
. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
- Update the README.md with details of changes to the interface, if applicable.
- Update the package.json version number in any examples files and the README.md to the new version that this Pull Request would represent.
- The PR will be merged once you have the sign-off of at least one other developer.
We use GitHub issues to track public bugs. Report a bug by opening a new issue.
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
- Use TypeScript for all new code
- 2 spaces for indentation
- Use meaningful variable names
- Follow the existing code style
- Write comments for complex logic
- Use ESLint and Prettier for code formatting
- Write unit tests for new features
- Ensure all tests pass before submitting PR
- Follow existing test patterns
- Use meaningful test descriptions
- Update documentation for any new or changed features
- Use clear and concise language
- Include code examples where appropriate
- Keep README.md up to date
By contributing, you agree that your contributions will be licensed under its MIT License.
- Install dependencies:
yarn install
- Set up environment variables:
cp .env.example .env
- Start development server:
yarn dev
When contributing, please respect the following project structure:
src/
├── components/ # Reusable UI components
├── pages/ # Page components
├── hooks/ # Custom React hooks
├── contexts/ # React contexts
├── services/ # API services
├── utils/ # Utility functions
├── types/ # TypeScript types
└── assets/ # Static assets
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone.
Examples of behavior that contributes to a positive environment:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team. All complaints will be reviewed and investigated.
Feel free to open an issue for any questions about contributing!