-
Notifications
You must be signed in to change notification settings - Fork 2
What app structure are we going to follow? #8
Comments
I prefer to have reusable components under the Something like:
|
I like Ray's suggestion. The main requirement is that it shows the separation of concerns within our app. |
I would like to ensure that we have a clear separation between "the framework", things that the students shouldn't need to touch, and "the app", things that the students change/add. Also, the pages as root starts to get a bit messy if we start adding other concerns e.g. models, constants, services (hopefully we don't need services), so maybe having pages under a common directory isn't too bad Which would make me think we have a structure similar to:
In this structure |
Thanks for the replies guys, I'll do a restructure today based on your suggestions and maybe then we can discuss it. I'm currently leaning towards a structure similar to Andrew has suggested |
As an alternative to Andrews suggestion, do we need the framework code in the same repository? Could we setup a "framework repo" that contains all the code for the actual framework and allow the students to pull it in via npm? This would probably require us writing a bit of documentation so maybe not for the first cut |
Ultimately, I would expect the framework to live outside the student repos as it does with the current watch. But for ease of building it, I'd prefer to keep them in the same repo for now, and extract it out later. If we structure it with app/framework and an |
Agreed. The framework code can be pulled out at any point but for now we can just keep it there since we're still in dev stage. |
Hi guys,
Based on our previous discussion; it seems like we need to keep this app as simple, as light and as small as possible. So does that mean we don't need too many components and nested app structure?
Should we just put all the components we have in like {root}/component/* and not have too many small atomic components?
Can you please review the current project structure and see if it makes sense to you? I think the way we handled views/watch pages is not clear enough
The text was updated successfully, but these errors were encountered: