View Code? Open in Web Editor
NEW
Log parser example using SOLID
JavaScript 44.79%
TypeScript 55.21%
log-parser's Introduction
- TypeScript OOP project.
- Node.js v10+
- Designed in accordance with OOD principles (DRY, SLAP, SOLID, etc).
- Unit-testing ready (or partially covered by tests)
- Flexibility of the architecture. Application should be easy to extend and modify.
- Navigate to the folder
cd log-parser
- Run
npm install
to install dependencies
- Run
tsc
to compile typescript to javascript code
- Run
node parser.js --input ./app.log --output ./errors.json
with input (log file location) and output(location to write file)
- Run
npm t
or npm run test
to run the Jest testcases
log-parser's People
Watchers