Skip to content

Folder Structure - DISCUSSION #121

Open

Description

@mathcodes

Discussed in #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!

Activity

  1. ShashwatAgrawal20 commented on Dec 24, 2022

    @ShashwatAgrawal20

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions