Move the inline server hooks into plugins
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Start with server.ts and the existing tests; identify how metrics, request timing, error shaping, health routes, and OpenAPI schema attachment are currently registered before splitting them into Fastify plugins. Run npm test to check that behavior remains unchanged, then run npm run lint and npm run typecheck. Done when each concern is registered from a shorter buildServer and the existing checks pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
server.ts is over 500 lines and mixes metrics, request timing, error
shaping, health routes and the OpenAPI schema attachment.
Acceptance criteria
- Extract each concern into a Fastify plugin and register them from a short
buildServer. - Leave behaviour unchanged and keep the existing tests green.
Getting started
Fork this repository, clone your fork, and add this repo as upstream:
git clone https://github.com/<your-username>/streamgive-backend.git
cd streamgive-backend
git remote add upstream https://github.com/StreamGive/streamgive-backend.git
Create a branch for this issue:
git checkout -b refactor/server-plugins
Suggested commit message:
refactor(server): move hooks and routes into plugins
Run npm run lint, npm run typecheck, and npm test before pushing, then
open a pull request from your fork against main and link this issue. See
the contributing guide for the full contribution guide.
- Lingua principale
- TypeScript
- Stelle
- 6
- Fork
- 67
- Merge medio
- 9h 2m
- PR unite (30g)
- 29
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di StreamGive/streamgive-backend
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StreamGive/streamgive-backend#510 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
StreamGive/streamgive-backend#509 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
StreamGive/streamgive-backend#506 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StreamGive/streamgive-backend#505 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StreamGive/streamgive-backend#503 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di StreamGive/streamgive-backend
Issue simili
-
ready-for-agent
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
LucasSantana-Dev/Lucky#3257 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
XiaomiMiMo/MiMo-Code#2849 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
danielmiessler/LifeOS#2894 ·
I maintainer di solito rispondono entro 5 giorni
-
enhancement frontend good first issue help wanted testing-infrastructure
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 2 giorni
-
enhancement follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno