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. |
|
The structure looks good. |
|
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 |
|
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 exampleI 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
|
|
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 |
|
Thanks to everyone who participated in this discussion which was successfully implemented via #66 |

Uh oh!
There was an error while loading. Please reload this page.
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
All reactions