Contributing across repositories
Choose the repository, development setup, and checks for your change.
Use the service architecture to find which component owns the behavior you want to change. Start with that repository’s guide and run the smallest local setup that exercises the change.
Find the right repository
| I want to change… | Start in | When to involve another repository |
|---|---|---|
| A stored record, database schema, API rule, or audit entry | backend | Update the affected API consumers if the contract or behavior changes. For changes to identity claims or granted permissions, check auth too. |
| A bot command, moderation action, or sync with Telegram | telegram | Involve backend if the bot needs a different procedure, event, or shared record. Involve auth if the action needs a new permission. |
| How staff edit content, manage volunteers, or see an error in the dashboard | admin | Involve backend if saving, validation, or API authorization must change. |
| A public page layout, fixed page copy, or translation | web | For managed content, authorized editors can update the value in admin. Changing its schema or the way it is edited may involve backend and admin. |
| Sign-in, account linking, an OIDC claim, or the permission catalog | auth | Check the clients that consume the changed claim or permission. For a dashboard access change, test the API decision in backend and what admin shows. |
| A short-link redirect, alias, statistic, or REST operation | polinet.cc | Coordinate with REST clients if the contract changes. Involve auth if the operator sign-in or permission contract needs to change. |
Set up the project you need
| Repository | Local development and checks | Guide |
|---|---|---|
| backend | Use Bun and the local PostgreSQL and Redis Compose services. Start with the default tests. For API smoke tests, choose local Auth or the Auth stand-in. Schema changes include a Drizzle migration and validation against a disposable PostgreSQL instance. | Backend contributing guide |
| telegram | Start with pnpm test, pnpm typecheck, and pnpm check. Running the bot end to end needs Redis, a test bot and chat, a reachable Backend, and a dedicated telegram-bot service client registered in Auth. Use the same registered bot client ID in Backend for Socket.IO. | Quick start · IdP authorization |
| admin | Use agent mode for UI work with fixtures, or token-backed agent mode to try supported Backend screens. Use the signed-in stack to check OIDC, sessions, or People and Soci persistence. Run the checks listed in the contributing guide. | Admin contributing guide |
| web | Use the README’s pnpm setup. For Backend-rendered pages, use local Backend and an Auth website service client with backend:public:read. Keep the Italian and English message keys in sync. Run pnpm check, pnpm typecheck, and pnpm test. | Development setup · Website guides |
| auth | Use Vite+ and the local Compose database. The seeded personas let you test common sign-in and permission cases. Use the full stack for changes that affect another application’s sign-in or access. | Auth contributing guide |
| polinet.cc | Use Node and pnpm, a disposable PostgreSQL database, and a local session secret. Use the repository’s env template for runtime settings. Test REST changes against the ts-rest contract and follow the existing pg-mem test pattern. Run pnpm check, pnpm test, and pnpm build. | Commands and configuration · Test guidance |
The Auth guide walks through registering Backend and Admin together and verifying a signed-in request. For Web or Telegram, register a separate development service client using Auth’s service integration guide. Use synthetic data, local credentials, and isolated test services. Keep credentials and exported data out of commits and PR descriptions. For parallel checkouts, follow the local stack’s port and Compose project instructions. Connect the local stack · Service client registration · Parallel checkouts
Coordinate a change across repositories
- Start with the owner of the contract. For a tRPC shape or shared data change, update Backend’s schema, procedures, policy, and tests as applicable. Add compatible fields where possible so existing consumers keep working while the change rolls out. For changes to identity claims, permissions, or OAuth client grants, check the Auth integration contract first.
- Update the consumers. Backend publishes the
@polinetwork/backendpackage used by Admin, Web, and Telegram. When a consumer needs a new type or exported contract, update its dependency and lockfile once the package is available. Check that the running Backend also serves the required API and has applied any migrations. - Verify the complete workflow. Test the operation from the actual consumer with permissions that should allow it and, for an authorization change, permissions that should deny it. For a Freshman field, verify that editing and saving it in Admin changes what visitors see on Web.
- Link companion PRs. Describe the affected contract, the checks you ran, and any package release, migration, or Auth configuration that must come before a consumer can use the change. Follow the target repo’s commit and review conventions.
Backend package release workflow · Backend contribution checklist · Auth integration guide
PoliNetwork Docs