This is a Vanilla TypeScript project on Vite, which contains exercises on Clean Code and SOLID Principles.
To clone this repository, run the following command:
git clone https://github.com/eavelasquez/clean-solid.git
To run the project, run:
yarn install
or
npm install
To start the project in development mode, run:
yarn dev
or
npm run dev
clean-solid
├── docs
│ └── slides.pdf
├── src
│ ├── clean-code
│ │ ├── 01-names.ts
│ │ ├── 02-name-types.ts
│ │ ├── 03-functions.ts
│ │ ├── 04-nested-if-else.ts
│ │ ├── 05-dry.ts
│ │ ├── 06-classes-a.ts
│ │ ├── 06-classes-b.ts
│ │ ├── 06-classes-c.ts
│ │ └── 07-srp.ts
│ ├── code-smell
│ │ ├── 01-singleton.js
│ │ ├── 02-high-coupling.ts
│ │ └── 03-high-coupling.ts
│ ├── data
│ │ └── local-database.json
│ ├── solid
│ │ ├── 01-srp.ts
│ │ ├── 02-open-close-a.ts
│ │ ├── 02-open-close-b.ts
│ │ ├── 02-open-close-c.ts
│ │ ├── 03-liskov-a.ts
│ │ ├── 03-liskov-b.ts
│ │ ├── 03-liskov-c.ts
│ │ ├── 04-segregation-a.ts
│ │ ├── 04-segregation-b.ts
│ │ ├── 05-dependency-a.ts
│ │ ├── 05-dependency-b.ts
│ │ ├── 05-dependency-c.ts
│ │ └── 05-dependency-d.ts
│ ├── main.ts
│ └── style.css
├── index.html
└── package.json
Clean Code is a programming style that follows a set of rules to write code.
SOLID is a set of principles that are used to design software.