This is the code repository for Writing Clean Code - 20 Common Code Smells and How to Avoid Them, published by Packt. It contains all the supporting project files necessary to work through the video course from start to finish.
Code repository for the 20 code smells discussed in my online course.
NodeJS version 14 or higher. NPM version 6 or higher.
Installing NodeJS will already install NPM.
The easiest way to install NodeJS is to simply download the executable from nodejs.org and follow the instructions, but if you are more familiar with programming, I recommend installing NodeJS via NVM.
- After extracting the ZIP file, change into the folder where the code is stored.
- Run the command
npm ci
in the terminal. - You should be all set!
To execute a specific file, run the command npm start -- <folder_name>
in the terminal, where <folder_name>
is one of the 20 folders containing the code smells.