You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Notes based on what Jack said:
component/module based
e.g put all handlers, models, for country related logic, easier to manage in same place
so you just import the index in app to access all functions
The text was updated successfully, but these errors were encountered: