PoliticalComputerScience / PCS-Website

0 stars 1 forks source link

Module Structure #3

Open VivianWilde opened 1 week ago

VivianWilde commented 1 week ago

Decide on a module structure for the code going forward.

Tentative thoughts:

na933950 commented 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.),