This repository contains the TypeScript solution for the coding assignment dated October 2, 2025. It includes two main exercises as specified in the instructions document.
The project is organized following global best practices, with a clear separation of concerns.
/src: Contains all the TypeScript source code./exercises: Code for the two main exercises./exercise1-design-patterns: Implementations of the six design patterns with creative use cases./behavioral: Contains Behavioral patterns (Observer, Command)./creational: Contains Creational patterns (Singleton, Factory)./structural: Contains Structural patterns (Adapter, Decorator).
/exercise2-mini-project: Implementation of the "Astronaut Daily Schedule Organizer" mini-project./core: Core business logic (ScheduleManager, Task)./patterns: Design patterns applied specifically to this exercise (TaskFactory, ConflictObserver)./utils: Utility functions and classes (Logger, custom errors).
index.ts: The main entry point of the application that runs the console interface.
package.json: Project dependencies and scripts.tsconfig.json: TypeScript compiler configuration.
- Node.js (v18 or later)
- TypeScript (
npm install -g typescript)
-
Clone the repository:
git clone https://github.com/4ryaS/ei_assignment_25 cd ei_assignment_25 -
Install dependencies: This project requires
readline-syncfor easier console input handling.npm install
-
Compile TypeScript:
npm run build
-
Run the application:
npm start