Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STRETCH - Reorganise folders #30

Open
4 tasks
trishtracking opened this issue Oct 22, 2020 · 0 comments
Open
4 tasks

STRETCH - Reorganise folders #30

trishtracking opened this issue Oct 22, 2020 · 0 comments

Comments

@trishtracking
Copy link
Contributor

Notes based on what Jack said:

  • reorganise folders? Components e.g. all countries-relevant logic in one folder. put models & handlers in one file and then you don't have to write as many tests
  • way to organise files
    component/module based
    e.g put all handlers, models, for country related logic, easier to manage in same place
  • if there is 1 to 1 relationship between one model and one handler then can only test the handler itself and it will use the model
  • can have a index.js within each module folder that only exports required handlers
    so you just import the index in app to access all functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant