Project Folder Structure #61
Replies: 8 comments
-
I agree with this. I would like to propose the following structure.
Anyone is welcome to comment, give feedback and suggest improvements and/or provide alternatives. |
Beta Was this translation helpful? Give feedback.
-
The structure looks good. |
Beta Was this translation helpful? Give feedback.
-
This seems reasonable, we can adopt this |
Beta Was this translation helpful? Give feedback.
-
Hey There...I've converted this issue into a discussion. I believe the folder structure will be essential before the projects grows in complexity cc @kevinsshikuku, @lekipising, @dmuyah |
Beta Was this translation helpful? Give feedback.
-
I would like to suggest a structure similar to "Delightful React File/Directory Structure" by Josh W. Comeau https://www.joshwcomeau.com/react/file-structure/. The code is organized by function and broken down into small sub-parts with related concerns co-located together. This results in a codebase that is easy to refactor, extend, search, change and understand. I recommend checking the article as he goes into length to explain the thinking behind the decisions. Basic example
I made a quick-and-dirty POC repo with this folder structure in order to be certain that what I am talking about here is not pure nonsense. I also set up tests and stories to see how well all this works together. Feel free to check it out here: https://github.com/antosan/next-file-structure MotivationMost React projects start with an
|
Beta Was this translation helpful? Give feedback.
-
We can do a poll on the most preferred folder structure for the project going forward We will use the 🎉 for THIS SUGGESTTION I'll be collecting feedback on this as we progress... cc @kevinsshikuku, @lekipising, @dmuyah, @antosan |
Beta Was this translation helpful? Give feedback.
-
Thanks to everyone who participated in this discussion which was successfully implemented via #66 |
Beta Was this translation helpful? Give feedback.
-
Description
I would like to suggest a folder structure that is easy to comprehend and hierarchical.
Solution description
Project files should be placed in categorized folders based on what they do.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions