Thank you for your interest in contributing to HTMLShare! This document provides guidelines and information for contributors.
- Node.js 18+
- npm or yarn
- Git
-
Fork and Clone
git clone https://github.com/your-username/HTMLShare.git cd HTMLShare -
Install Dependencies
npm install
-
Environment Setup
cp .env.example .env.local # Edit .env.local with your configuration -
Start Development Server
npm run dev
-
Visit
http://localhost:4321
feature/description- New featuresfix/description- Bug fixesdocs/description- Documentation updatesrefactor/description- Code refactoring
Follow conventional commits format:
feat: add new sharing featurefix: resolve upload issuedocs: update READMEstyle: format coderefactor: optimize database queries
- Use TypeScript for type safety
- Follow existing code formatting
- Add comments for complex logic
- Ensure responsive design
# Run linting
npm run lint
# Build project
npm run build
# Clean build artifacts
npm run clean-
Create Feature Branch
git checkout -b feature/your-feature-name
-
Make Changes
- Write clean, documented code
- Test your changes thoroughly
- Update documentation if needed
-
Commit Changes
git add . git commit -m "feat: your descriptive message"
-
Push and Create PR
git push origin feature/your-feature-name
-
Submit Pull Request
- Use the PR template
- Provide clear description
- Link related issues
- Add screenshots if UI changes
When reporting bugs, please include:
- Clear description of the issue
- Steps to reproduce
- Expected vs actual behavior
- Browser/device information
- Screenshots if applicable
For new features:
- Check existing issues first
- Provide clear use case
- Explain expected behavior
- Consider implementation complexity
HTMLShare/
├── src/
│ ├── pages/ # Astro pages and API routes
│ ├── layouts/ # Page layouts
│ ├── lib/ # Utility libraries
│ └── env.d.ts # Type definitions
├── public/ # Static assets
├── scripts/ # Build and deployment scripts
└── README.md
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run deploy- Deploy to Cloudflare Pagesnpm run clean- Clean build artifacts
By contributing, you agree that your contributions will be licensed under the MIT License.
- Be respectful and inclusive
- Focus on constructive feedback
- Help others learn and grow
- Maintain professional communication
- 📧 Create an issue for bugs/features
- 💬 Start a discussion for questions
- 📖 Check existing documentation
Thank you for contributing to HTMLShare! 🎉