|
| 1 | +# Contributing to CodeStorm Hub Portfolio |
| 2 | + |
| 3 | +We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: |
| 4 | + |
| 5 | +- Reporting a bug |
| 6 | +- Discussing the current state of the code |
| 7 | +- Submitting a fix |
| 8 | +- Proposing new features |
| 9 | +- Becoming a maintainer |
| 10 | + |
| 11 | +## Development Process |
| 12 | + |
| 13 | +We use GitHub to host code, to track issues and feature requests, as well as accept pull requests. |
| 14 | + |
| 15 | +## Pull Request Process |
| 16 | + |
| 17 | +1. Fork the repository and create your branch from `main` |
| 18 | +2. If you've added code that should be tested, add tests |
| 19 | +3. If you've changed APIs, update the documentation |
| 20 | +4. Ensure the test suite passes |
| 21 | +5. Make sure your code lints |
| 22 | +6. Issue that pull request! |
| 23 | + |
| 24 | +## Local Development |
| 25 | + |
| 26 | +### Prerequisites |
| 27 | + |
| 28 | +- Node.js 18.0 or later |
| 29 | +- npm 8.0 or later |
| 30 | + |
| 31 | +### Setup |
| 32 | + |
| 33 | +1. Clone the repository: |
| 34 | + ```bash |
| 35 | + git clone https://github.com/CodeStorm-Hub/CodeStorm-Hub.github.io.git |
| 36 | + cd CodeStorm-Hub.github.io |
| 37 | + ``` |
| 38 | + |
| 39 | +2. Install dependencies: |
| 40 | + ```bash |
| 41 | + npm install |
| 42 | + ``` |
| 43 | + |
| 44 | +3. Start the development server: |
| 45 | + ```bash |
| 46 | + npm run dev |
| 47 | + ``` |
| 48 | + |
| 49 | +4. Open [http://localhost:3000](http://localhost:3000) in your browser |
| 50 | + |
| 51 | +### Available Scripts |
| 52 | + |
| 53 | +- `npm run dev` - Start development server |
| 54 | +- `npm run build` - Build for production |
| 55 | +- `npm run start` - Start production server |
| 56 | +- `npm run lint` - Run ESLint |
| 57 | + |
| 58 | +### Project Structure |
| 59 | + |
| 60 | +``` |
| 61 | +src/ |
| 62 | +├── app/ # Next.js App Router pages |
| 63 | +│ ├── globals.css # Global styles and design tokens |
| 64 | +│ ├── layout.tsx # Root layout component |
| 65 | +│ └── page.tsx # Homepage |
| 66 | +├── components/ # Reusable UI components |
| 67 | +│ ├── ui/ # Basic UI components (Button, Card, etc.) |
| 68 | +│ └── layout/ # Layout components (Header, Footer) |
| 69 | +└── lib/ # Utilities and configurations |
| 70 | + └── utils.ts # Utility functions |
| 71 | +``` |
| 72 | + |
| 73 | +## Design System |
| 74 | + |
| 75 | +This project uses a comprehensive design system based on: |
| 76 | + |
| 77 | +- **Colors**: Radix Colors for consistent, accessible color palettes |
| 78 | +- **Components**: Radix UI Primitives for accessible, unstyled components |
| 79 | +- **Styling**: Tailwind CSS for utility-first styling |
| 80 | +- **Typography**: Geist font family for modern, readable text |
| 81 | + |
| 82 | +### Component Guidelines |
| 83 | + |
| 84 | +- Use Radix UI primitives as the foundation for complex components |
| 85 | +- Follow the established color tokens and spacing scale |
| 86 | +- Ensure all components are accessible (ARIA labels, keyboard navigation) |
| 87 | +- Use TypeScript for all components with proper prop types |
| 88 | + |
| 89 | +## Code Style |
| 90 | + |
| 91 | +We use ESLint and Prettier to maintain consistent code style: |
| 92 | + |
| 93 | +- Use TypeScript for all new code |
| 94 | +- Follow the established ESLint configuration |
| 95 | +- Use meaningful variable and function names |
| 96 | +- Add JSDoc comments for complex functions |
| 97 | +- Keep components small and focused |
| 98 | + |
| 99 | +## Commit Convention |
| 100 | + |
| 101 | +We follow the [Conventional Commits](https://www.conventionalcommits.org/) specification: |
| 102 | + |
| 103 | +- `feat:` for new features |
| 104 | +- `fix:` for bug fixes |
| 105 | +- `docs:` for documentation changes |
| 106 | +- `style:` for formatting changes |
| 107 | +- `refactor:` for code refactoring |
| 108 | +- `test:` for adding tests |
| 109 | +- `chore:` for maintenance tasks |
| 110 | + |
| 111 | +## License |
| 112 | + |
| 113 | +By contributing, you agree that your contributions will be licensed under the BSD 3-Clause License. |
| 114 | + |
| 115 | +## References |
| 116 | + |
| 117 | +This project is inspired by and follows best practices from: |
| 118 | + |
| 119 | +- [Vercel Design Engineering](https://vercel.com/solutions/design-engineering) |
| 120 | +- [Radix UI Design System](https://www.radix-ui.com/) |
| 121 | +- [Next.js Documentation](https://nextjs.org/docs) |
| 122 | +- [Tailwind CSS Best Practices](https://tailwindcss.com/docs/reusing-styles) |
0 commit comments