Thank you for your interest in contributing to Simple HTTP Server! This document provides guidelines and information for contributors.
This project adheres to a Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to the project maintainers.
Before creating an issue, please check if a similar issue already exists. When creating a new issue, please include:
- A clear and descriptive title
- A description of the expected behavior
- A description of the actual behavior
- Steps to reproduce the issue
- Your environment (OS, Node.js version, etc.)
- Any relevant error messages or logs
Enhancement suggestions are welcome! Please provide:
- A clear and descriptive title
- A detailed description of the proposed enhancement
- Use cases and examples
- Any additional context
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests if applicable
- Ensure all tests pass
- 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/simple-http-server.git cd simple-http-server -
Install dependencies:
npm install
-
Run in development mode:
npm run dev
-
Build the project:
npm run build
- Use TypeScript for all new code
- Follow the existing code style and patterns
- Write clear, self-documenting code
- Add comments for complex logic
- Use meaningful variable and function names
- Keep functions small and focused
- Write tests for new features
- Ensure all existing tests pass
- Test your changes thoroughly before submitting
Use clear and descriptive commit messages. Follow this format:
type(scope): description
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
- Keep PRs focused and small when possible
- Provide a clear description of changes
- Reference any related issues
- Ensure CI checks pass
- Request review from maintainers
If you have questions about contributing, please open an issue or contact the maintainers.
Thank you for contributing! 馃帀