Refactor code base structure
Closed this issue · 0 comments
cweems commented
We want to split up proxypoc.js
into modules for better readability and testing.
Create basic folder structure based on: https://blog.logrocket.com/organizing-express-js-project-structure-better-productivity/
- migrate router methods into index or routes.js. All routes should be defined in same file and operate on a JS module. Reduce mix of routes and business logic.
- move router controllers into their own modules.
- Identify dependencies that are used by multiple modules. Migrate to utils.