Skip to content

Latest commit

 

History

History
68 lines (59 loc) · 1.67 KB

File metadata and controls

68 lines (59 loc) · 1.67 KB

Contributing to Groupem

Development Environment

  1. Clone repo and install dependencies:
npm install
  1. Generate Prisma client:
cd mcp-server
npx prisma generate
cd ..
  1. Copy .env.example to .env and adjust.
  2. (Optional) Start ML service:
cd ml-service
python -m venv .venv
. .venv/Scripts/Activate.ps1
pip install -r requirements.txt
uvicorn app.main:app --port 8000
  1. Run server + ML concurrently:
npm run dev
  1. Build extension:
npm -w extension run build

Scripts Overview

  • npm run dev:mcp – MCP server (ts-node-dev)
  • npm run dev:ml – FastAPI ML service
  • npm run dev – Concurrent server + ML
  • npm run build – Build shared libs, server, extension
  • npm test – Unit/integration tests
  • npm run test:e2e – Playwright tests

Code Style

  • TypeScript strictness maintained; avoid unnecessary any.
  • Keep functions small and purposeful.
  • Do not commit generated dist/ except for packaged extension release branches.

Security & Secrets

  • Never commit real secrets. .env is ignored.
  • Rotate JWT_SECRET for production deployments.

Pull Requests

  • Include description & rationale.
  • Ensure npm test passes locally.
  • Run npm -w shared run build if modifying shared models.

Commit Messages

Follow conventional style (recommended):

  • feat: add X
  • fix: correct Y
  • docs: update README
  • refactor: simplify Z

Testing Guidance

  • Add unit tests for new utilities.
  • Extend Playwright E2E if UI flows change.

Issue Reporting

Include reproduction steps, expected vs actual behavior, and environment (OS, Node, Python versions).

Happy hacking!