Folder Structure - DISCUSSION
Discussed in https://github.com/mathcodes/contentfordevelopers/discussions/120
Originally posted by mathcodes December 23, 2022
One thing we should get on the same page about and add to the GUIDELINES is folder structure. As it sits, in the components directory we have another directory ui with three more, card, footer, and header. Back in the components directory, we have files for each of the following components: Card, Contributor, Footer, and Navbar.
I think we should follow the structure inside the ui folder, but house all those directories in the components folder:
- src
- components
- card
- contributor
- footer
- header
- navbar
- components
I also created a db directory as we will be using a ton of data as this grows. I've added leetCode.db with 1-150 problems entered in with tags and links and everything 👍 - Special Thanks to Codex 👀 🙏
Chime in and let me know what you think!
I think breaking the folder structure into sub-folders would be a great idea.
As multiple directories in the src folder help us to break code into parts and it's easy to understand.
src
- feature
- components
- pages
- styles
In above the structure the feature folder will also have a component sub-folder