question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[DOCS] Improve directory structure for the app

See original GitHub issue

Description

I think it’s better and a good practice to organize directories in a self-describing manner. Currently, we can’t distinguish between Components, Pages and Routes cos of the directory structure (i.e Everything is placed in the components directory). I’m suggesting we re-structure it to something like this:

src
 +- app // Contains pure js files (i.e services, helpers)
 +- components // Self explanatory
 +- redux // Self explanatory
 +- pages // Self explanatory
 +- routes
     -- index.jsx // Default routes would be located here. This gives us the chance to split routes i guess-ish?
 -- App.css
 -- App.js
 -- index.js
 -- index.(css|scss)
// Other config/important files goes here

I think this is somehow related to #15 , but this is more of like the directory structuring

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mathiasayivorcommented, Jul 19, 2022

noted

0reactions
Dun-sincommented, Jul 19, 2022

Then I’ll work on it… may I?

No someone else should

Read more comments on GitHub >

github_iconTop Results From Across the Web

Folder structure for documentation | GitLab
Our goal is to have a clear hierarchical structure with meaningful URLs like docs.gitlab.com/user/project/merge_requests/ . With this pattern, you can ...
Read more >
Create the App File Structure - Weebly Cloud
The root directory of every application contains the manifest.json file. The manifest provides the defining characteristics of the application. Backend services ...
Read more >
Simplifying Google Drive's folder structure and sharing models
This simplification of Drive's folder structure and sharing models will result in a change in the way some Google Drive API endpoints behave....
Read more >
Application Designer Directory Structure — ODK-X Docs
This folder has a predefined directory structure, but the content is entirely dependent upon the needs of your application. The zip file for...
Read more >
Structuring Your Project - The Hitchhiker's Guide to Python
In practical terms, “structure” means making clean code whose logic and dependencies are clear as well as how the files and folders are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found