Skip to content

LizardKing131313/node_boilerplate

Repository files navigation

Node.js boilerplate

CI Qodana Coverage

Fastify + TypeScript (strict), ESLint (flat), Prettier, Vitest, Playwright (API), Husky pre-commit, Qodana.

Быстрый старт

pnpm i
pnpm dlx husky install
pnpm dlx playwright install --with-deps
make dev

Команды

make install | dev | build | preview | lint | typecheck | test | e2e | format | ci

  • dev: run in watch mode via tsx
  • build: compile to dist via tsc
  • preview: run compiled server (node dist/index.js)
  • test: unit tests via Vitest
  • e2e: API tests via Playwright (/e2e)
  • ci: lint → typecheck → unit → e2e

Стек

  • Server: Fastify
  • Lang: TypeScript (ESM, NodeNext)
  • Test: Vitest (+ coverage-v8), Playwright (API)
  • Quality: ESLint (flat, TS-aware), Prettier, Husky + lint-staged, Qodana
  • Pkg: pnpm

Структура

.
├─ src/
│  ├─ app.ts          # buildApp(): FastifyInstance
│  └─ index.ts        # bootstrap server (PORT=3000)
├─ tests/             # unit tests (Vitest)
├─ e2e/               # e2e (Playwright API)
├─ .husky/            # git hooks
├─ .github/workflows/ # CI
└─ ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published