Contributing
Guide for contributing to Bklit Analytics
Contributing
Thank you for your interest in contributing to Bklit Analytics!
Getting Started
- Fork the repository
- Clone your fork
- Install dependencies:
pnpm install - Set up environment variables
- Run development server:
pnpm dev
Development Setup
For detailed local development setup including databases, see Local Development.
Code Style
TypeScript
- Use TypeScript for all code
- Enable strict mode
- Use interfaces for types
- Avoid
anytypes
React
- Prefer server components
- Use client components only when needed
- Follow React best practices
- Use hooks appropriately
Formatting
Run formatting before committing:
pnpm format-and-lint:fixPull Request Process
- Create a feature branch
- Make your changes
- Write/update tests if applicable
- Update documentation
- Run type checking:
pnpm typecheck - Run linting:
pnpm format-and-lint - Submit pull request
Commit Messages
Use clear, descriptive commit messages:
feat: Add new analytics feature
fix: Fix token validation bug
docs: Update installation guideTesting
- Test your changes locally
- Verify all apps still work
- Check for TypeScript errors
- Test edge cases
Documentation
- Update relevant documentation
- Add code comments where needed
- Update README if needed
- Keep docs in sync with code
Questions?
- Open an issue for questions
- Check existing issues first
- Be respectful and helpful
Related Documentation
- Getting Started - Setup guide
- Local Development - Local development setup