Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmncit/dpatterna

Design Pattern playground
https://github.com/mmncit/dpatterna

design-patterns javascript python svelte typescript webpack

Last synced: 2 days ago
JSON representation

Design Pattern playground

Awesome Lists containing this project

README

        

# dpatterna

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

# For `ts`/`js` files:

## Install dependencies

```bash
yarn install
```

## Running the test suite

Execute the tests with:

```bash
yarn test
```

Once you get a test passing, you can enable the next one by changing `xit` to `it`.

## Running web app

```bash
yarn # install dependencies

yarn start # invoke development with webpack-dev-server
```

## Execute a script as `node` + `tsc`

```bash
yarn ts-node
# e.g. $yarn ts-node src/functional/closure/adjectifier.ts
```

# For `py` files: (python version >= 3)
Just run with

```sh
python
```

or

```sh
python3
```