dwyl / app-mvp-elm

:palm_tree: The Elm MVP @dwyl application
https://app-mvp-elm.herokuapp.com/
GNU General Public License v3.0
7 stars 0 forks source link

Create pages module #11

Open SimonLab opened 4 years ago

SimonLab commented 4 years ago

Currently the Main.elm file contains all the logic of the application. We have only 3 kind of pages but with new features coming this will certainly rapidly grow (e.g capture page, categorise page, about page, ...): https://github.com/dwyl/app-mvp-elm/blob/7507bab9b6136a7ea603592e743778c31d517ed9/src/Main.elm#L31-L34

If we keep all the logic of the pages in the Main module it will be difficult to navigate the code.

Based on the projects structure of

creating a module per page seems to be a good idea to manage the logic specific to a route.