Thank you for considering contributing to BlockHub! This document provides guidelines and instructions for contributing to the project.
By participating in this project, you agree to abide by our Code of Conduct. Please read it before contributing.
- Check if the bug has already been reported in the Issues section
- Use the bug report template when creating a new issue
- Include detailed steps to reproduce the bug
- Include screenshots if applicable
- Specify your environment (OS, browser, version)
- Check if the enhancement has already been suggested in the Issues section
- Use the feature request template when creating a new issue
- Provide a clear description of the enhancement
- Explain why this enhancement would be useful
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests and linting
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
-
Clone the repository:
git clone https://github.com/yourusername/blockhub.git cd blockhub -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Clone the repository:
git clone https://github.com/yourusername/blockhub.git cd blockhub -
Build and start the Docker container:
docker-compose up -d
- Follow the ESLint configuration
- Use TypeScript for type safety
- Use async/await for asynchronous code
- Write meaningful variable and function names
- Use functional components with hooks
- Keep components small and focused
- Use TypeScript for props and state
- Follow the project's component structure
- Use Tailwind CSS classes
- Follow the project's design system
- Ensure responsive design works on all screen sizes
- Write tests for new features
- Ensure all tests pass before submitting a PR
- Test on different browsers if making UI changes
- Update documentation for new features or changes
- Use clear and concise language
- Include code examples where appropriate
- Use clear and meaningful commit messages
- Start with a verb in the present tense (e.g., "Add", "Fix", "Update")
- Reference issue numbers when applicable
- All PRs will be reviewed by at least one maintainer
- Address review comments promptly
- Be open to feedback and suggestions
Thank you for contributing to BlockHub!