You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contributing on frontend is actually a disaster.
We are duplicating a lot of things and adding more and more useless code that will be unmaintenable in few months.
As we are rethinking our application and try to focus on major things to get done, refactor the folder structure could improve our developement flow and efficiency.
Of course there is a price to do that, and it's actually to big to be one-shot.
With @MaloPolese we are proposing to get a more simplier approach and use the same folder structure as nextjs.
We aim to reach a folder structure like this one in src folder:
main.tsx
configshared constants for the whole app
constants
routesthe routers and routes definitions
environmentsinfrastructure environments stuff
i18n
stylesscss properties
apppolyflix application
pages
layouts
contexts
hooks
styles
studiostudio stuff
pages
layouts
contexts
hooks
styles
sharedshared stuff between 2
components
hooks
services
contexts
types
Of course a folder structure isn't sufficient to get things orderned, we should adopt a new way to create and place component.
In each folder you will find domains specific folder
for example in shared/components:
commonshared components between all domains
videoscomponents specific to video
courses
users
To adopt this new architecture we will need to move things progressively.
The text was updated successfully, but these errors were encountered:
I think that app/components is only the components for polyflix.
If you want some shared components between polyflix and studio maybe have a lib or a folder like core or shell
In this folder you can add all the components / env / hooks / api services .... shared between all app
I think that app/components is only the components for polyflix. If you want some shared components between polyflix and studio maybe have a lib or a folder like core or shell In this folder you can add all the components / env / hooks / api services .... shared between all app
Hey, I updated the structure and added a shared folder that could be made as dependancy later using turborepo.
Do you agree with the structure ? Any change to do ?
I think that app/components is only the components for polyflix. If you want some shared components between polyflix and studio maybe have a lib or a folder like core or shell In this folder you can add all the components / env / hooks / api services .... shared between all app
Hey, I updated the structure and added a shared folder that could be made as dependancy later using turborepo. Do you agree with the structure ? Any change to do ?
Description
Contributing on frontend is actually a disaster.
We are duplicating a lot of things and adding more and more useless code that will be unmaintenable in few months.
As we are rethinking our application and try to focus on major things to get done, refactor the folder structure could improve our developement flow and efficiency.
Of course there is a price to do that, and it's actually to big to be one-shot.
With @MaloPolese we are proposing to get a more simplier approach and use the same folder structure as nextjs.
We aim to reach a folder structure like this one in
src
folder:Of course a folder structure isn't sufficient to get things orderned, we should adopt a new way to create and place component.
In each folder you will find domains specific folder
for example in
shared/components
:To adopt this new architecture we will need to move things progressively.
The text was updated successfully, but these errors were encountered: