Open VivianWilde opened 1 week ago
Yup I agree with a lot of this-- particularly components
and pages
I think the data
directory should be in public
rather than src
because it is static data.
utils
can be in the src
folder and contain (probably for the front end at least) constants which will be the text that appears on our page, and helper functions if need be.
I think generally components can be all in the components folder and comments can be left in each file to say which page they're for anyway. In my opinion, to maintain solid structures and styles for our web app, it might be better even to make the components folder page-independent and further break it down into /buttons
, /forms
, /layout
(navbar, footer, etc.),
Decide on a module structure for the code going forward.
Tentative thoughts:
components
andpages
directoriesdata
directory : Contains stuff like a list of club members as JSON which we can pull from to generate pagesapi
orlib
orutils
: Contains code utilities (not visual components), for things like processing JSON, routing, and other stuff that comes up.assets
orstatic
, to hold images and other resourcescomponents/<page>
folders to store components tightly coupled with a specific page?api
, etc. code folders.