dpatterna

Design patterns are well-known solutions to recurring problems. This repo holds some of the classical introductory exercises for different design patterns.

Tech Stack

  • Framework: Svelte 5 (runes mode)
  • Build Tool: Vite
  • Language: TypeScript
  • Package Manager: pnpm
  • Testing: Jest (unit), Playwright (e2e)
  • Deployment: GitHub Pages

Getting Started

Install dependencies

pnpm install

Running the web app

pnpm start

Opens the dev server at http://localhost:9000.

Running the test suite

pnpm test        # run all unit tests with coverage
pnpm test:dev    # run tests in verbose/watch mode

Running e2e tests

pnpm playwright test

Build for production

pnpm build       # outputs to dist/
pnpm preview     # preview the production build

Deploy to GitHub Pages

pnpm deploy

Execute a script with ts-node

pnpm ts-node <file_path>
# e.g. pnpm ts-node src/functional/closure/adjectifier.ts

For py files (Python >= 3)

python3 <file_path>

Top categories

Loading Svelte Themes