Clean up of the javascript. Task was to fix potential issues and improve the overall quality of the code.
- Removed all js code in html file
- Replace FP by OOP
- Added middleware to use promises for cleaner code base
- Tried to abstract as much as possble (DRY and removal of magic strings)
- Declutter/Unnest code using ES6 patterns, async/await
- Tried to keep the complexity level under 5 (https://www.geeksforgeeks.org/cyclomatic-complexity/)
- Fix issue related to the a tag link
- npm 6.14.13
- Install the packages:
npm i
- Run
npm start
- Available on
http://127.0.0.1:8080