Thank you for your interest in contributing to nodejs-questdb-client! This document provides guidelines and instructions for contributing to the project.
- Fork and clone the repository:
git clone https://github.com/YOUR_USERNAME/nodejs-questdb-client.git
cd nodejs-questdb-client- Install dependencies:
pnpm installThe project uses Vitest for testing. Tests are located in the test directory.
- Run tests in watch mode during development:
pnpm run test- Some tests use mock servers and certificates located in the
test/certsdirectory
You can generate the certificates by running the
generateCerts.shscript in thescriptsdirectory. The script requires two arguments: the output directory and the password for the certificates../scripts/generateCerts.sh . questdbPwd123
-
The project uses TypeScript. Make sure your code is properly typed.
-
Format your code using Prettier
-
Lint your code:
pnpm run lint- Fix linting issues:
pnpm run lint --fix- Create a new branch for your changes:
git checkout -b feature/your-feature-name- Make your changes and commit them with clear, descriptive commit messages:
git add .
git commit -m "feat: add new feature"We follow the Conventional Commits specification for commit messages.
- Push your changes to your fork:
git push origin feature/your-feature-name- Create a Pull Request from your fork to the main repository.
- Make sure all tests pass
- Update documentation if needed
- Add tests for new features
- Keep PRs focused - one feature or bug fix per PR
- Link any related issues in the PR description
- Update the README.md if you're adding new features or changing existing ones
- Add JSDoc comments for new public APIs
- Include examples in the documentation when appropriate
If you have questions or need help, you can:
- Open an issue with your question
- Join our community discussions (if available)
By contributing to nodejs-questdb-client, you agree that your contributions will be licensed under the project's license.