mathcodes / contentfordevelopers

We aim to please users with not just another solution bank to leetcode problems, but more. Contributors are encouraged to upload and share any additional content such as visual diagrams, animated GIFs, notes, charts, or whatever they use to not only solve, but UNDERSTAND the problem at hand.
https://www.contentfordevelopers.com/
MIT License
33 stars 31 forks source link

Folder Structure - DISCUSSION #121

Open mathcodes opened 1 year ago

mathcodes commented 1 year ago

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 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!
ShashwatAgrawal20 commented 1 year ago

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