|
| 1 | +# Contributing to PiperQL |
| 2 | + |
| 3 | +Thank you for your interest in contributing to PiperQL! This guide will help you get started. |
| 4 | + |
| 5 | +## How to Contribute |
| 6 | + |
| 7 | +### Reporting Bugs |
| 8 | + |
| 9 | +1. Check [existing issues](https://github.com/ajaysharmadeveloper/piperql/issues) to avoid duplicates |
| 10 | +2. Open a new issue using the bug report template |
| 11 | +3. Include steps to reproduce, expected behavior, and actual behavior |
| 12 | + |
| 13 | +### Suggesting Features |
| 14 | + |
| 15 | +1. Check [existing issues](https://github.com/ajaysharmadeveloper/piperql/issues) for similar requests |
| 16 | +2. Open a new issue using the feature request template |
| 17 | +3. Describe the problem your feature would solve |
| 18 | + |
| 19 | +### Submitting Code |
| 20 | + |
| 21 | +1. Fork the repository |
| 22 | +2. Create a feature branch from `main`: |
| 23 | + ```bash |
| 24 | + git checkout -b feature/your-feature-name |
| 25 | + ``` |
| 26 | +3. Make your changes |
| 27 | +4. Run tests: |
| 28 | + ```bash |
| 29 | + make test |
| 30 | + ``` |
| 31 | +5. Commit with a clear message: |
| 32 | + ```bash |
| 33 | + git commit -m "feat: add your feature description" |
| 34 | + ``` |
| 35 | +6. Push and open a Pull Request |
| 36 | + |
| 37 | +### Commit Message Convention |
| 38 | + |
| 39 | +We follow [Conventional Commits](https://www.conventionalcommits.org/): |
| 40 | + |
| 41 | +- `feat:` — new feature |
| 42 | +- `fix:` — bug fix |
| 43 | +- `docs:` — documentation changes |
| 44 | +- `chore:` — maintenance tasks |
| 45 | +- `refactor:` — code refactoring |
| 46 | +- `test:` — adding or updating tests |
| 47 | + |
| 48 | +## Development Setup |
| 49 | + |
| 50 | +```bash |
| 51 | +# Clone your fork |
| 52 | +git clone https://github.com/YOUR_USERNAME/piperql.git |
| 53 | +cd piperql |
| 54 | + |
| 55 | +# Install dependencies |
| 56 | +make install |
| 57 | + |
| 58 | +# Set up environment |
| 59 | +cp backend/.env.example backend/.env |
| 60 | +cp frontend/.env.local.example frontend/.env.local |
| 61 | +# Edit with your settings |
| 62 | + |
| 63 | +# Run migrations |
| 64 | +make migrate |
| 65 | + |
| 66 | +# Start development |
| 67 | +make run |
| 68 | +``` |
| 69 | + |
| 70 | +## Project Structure |
| 71 | + |
| 72 | +- `frontend/` — Next.js app (TypeScript, Tailwind CSS) |
| 73 | +- `backend/` — FastAPI backend (Python) |
| 74 | + - `backend/app/agent/` — LangGraph AI agent |
| 75 | + - `backend/app/routers/` — API routes |
| 76 | + - `backend/app/models/` — SQLAlchemy models |
| 77 | + - `backend/app/schemas/` — Pydantic schemas |
| 78 | + |
| 79 | +## Code Style |
| 80 | + |
| 81 | +- **Python:** Follow PEP 8 |
| 82 | +- **TypeScript:** Follow the existing ESLint config |
| 83 | +- **General:** Keep changes focused and minimal |
| 84 | + |
| 85 | +## Questions? |
| 86 | + |
| 87 | +Open an issue or reach out to [@ajaysharmadeveloper](https://github.com/ajaysharmadeveloper). |
0 commit comments