Skip to main content

Contributing

This section is for people who change EUDIPLO itself. Pick the task below; the process rules (issues, pull requests, DCO sign-off, commit messages) live in CONTRIBUTING.MD.

I want to…Read
Set up the repository and run everything locallyDevelopment setup
Change the backend (endpoint, migration, env var, adapter)Backend architecture
Change the web clientClient development
Change the CLICLI development
Change a configuration file formatConfiguration schemas
Run or write tests (unit, E2E, OIDF conformance)Testing
Format and lint my changeCode quality
Write or fix documentationDocumentation
Cut a releaseReleases

Quick start​

pnpm install
pnpm --filter @eudiplo/config-format build
pnpm --filter @eudiplo/sdk-core build
cp .env.example apps/backend/.env # then set MASTER_SECRET, AUTH_CLIENT_ID, AUTH_CLIENT_SECRET

pnpm dev:backend # NestJS API on http://localhost:3000 (nest start --watch)
pnpm dev:client # Angular client on http://localhost:4200

The backend package also has start (no watch) and start:debug (watch with the Node inspector). Development setup explains each step.

Before you open a pull request​

  • Run the checks of the packages you touched: pnpm run lint, pnpm run format:check and the relevant tests.
  • Sign off every commit (git commit -s) and use Conventional Commits.
  • A breaking change needs a ! or a BREAKING CHANGE: footer and an entry in the upgrade guide of the next major.
  • Update the documentation page that owns the behavior you changed.