This console application allows the creation of multiplication table files based on various parameters such as the table number, file name, destination, and the option to display the output in the console. The development integrates concepts of Clean Architecture, including use cases, best practices such as the Adapter pattern, and comprehensive unit testing.
- Custom Multiplication Table: Generate tables based on a specified number.
- File Creation: Create files with the generated multiplication tables.
- Destination Selection: Choose the destination for the generated files.
- Console Output Option: Enable viewing the table in the console.
The implementation of this application adheres to Clean Architecture principles, emphasizing:
- Use Cases: Implementing specific functionalities independently of the infrastructure.
- Adapter Pattern: Employing adaptable components to integrate diverse functionalities seamlessly.
- Unit Testing: Ensuring the reliability of each module through rigorous unit tests.
- Typescript
- Node.js
- rimraf
- yargs
- jest
- supertest
- Clone this repository:
git clone https://github.com/MosqueraSt3/multiplication.git - Install dependencies:
npm install
- Execute
npx ts-node ./src/app.ts -b "numberTable". - (Optional) Add
-sIf you want the output in the console. - (Optional) add
-n "nameFile"If you want a custom name for the file. - (Optional) Add
-d "fileDestination"If you want to change the file destination.