This guide will help you set up your development environment and understand our development practices.
-
Prerequisites
- Node.js (v18 or higher)
- Bun (latest version)
- Git
-
Clone and Setup
git clone https://github.com/kexa-io/Kexa.git cd Kexa bun install -
Environment Setup
- Create a
.envfile and add your necessary environment variables
- Create a
- Use TypeScript for all new code
- Enable strict mode
- Document public APIs with JSDoc comments
- Follow the existing code style
- Use 2 spaces for indentation
- Use meaningful variable and function names
- Keep functions small and focused
- Write self-documenting code
- Add comments for complex logic
- Follow SOLID principles
- Write testable code
- Handle errors appropriately
- Use async/await for asynchronous operations
- Keep dependencies minimal
-
Branch Naming
- Feature:
feature/description - Bug fix:
fix/description - Documentation:
docs/description - Performance:
perf/description
- Feature:
-
Commit Messages
- Use conventional commits format
- Start with type: feat, fix, docs, style, refactor, test, chore
- Keep messages clear and concise
-
Pull Requests
- Create PR against main branch
- Fill out PR template completely
- Ensure CI passes
- Request review from maintainers
bun run devbun run build
bun run startbun run test-
VS Code Configuration
- Use the provided launch configurations
- Enable source maps
- Use the debugger for Node.js
-
Logging
- Use the logging system
- Add appropriate log levels
- Include relevant context
- Update documentation for new features
- Include code examples
- Document breaking changes
- Keep README.md up to date
- Check existing issues and discussions
- Join our community chat
- Contact maintainers
- Read our FAQ