Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mmncit/dpatterna
- Owner: mmncit
- Created: 2021-07-07T12:09:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-04T07:26:55.000Z (about 2 years ago)
- Last Synced: 2023-02-27T00:21:16.112Z (over 1 year ago)
- Topics: design-patterns, javascript, python, svelte, typescript, webpack
- Language: TypeScript
- Homepage:
- Size: 3.36 MB
- Stars: 11
- Watchers: 6
- Forks: 42
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 dependenciesyarn 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
```