To contribute to this project, you should be aware of the project folder architecture and some other rules that are in place.
The source code of the project is located in the src/
folder.
Every file containing code has to be put in the src
folder. Reviewers will be very attentive to this during their merge reviews.
-
public/
: Static fileslocales/
: Translations files
-
src/
: Code sources files-
assets/
: Utilities files and contents -
environments/
: Environment constants -
i18n/
: i18n configurations files -
modules/
:core/
: Global and reusable code base[scope]/
: Source code for the scoped elementcomponents/
: ressources reusable componentsconstants/
: useful reusable constantscontexts/
: react context providershelpers/
: global reusable code simplifierhooks/
: react customs hookslayout/
: page structure templatesmodels/
: interface modelspages/
: element pagesreducers/
: redux reducers and slicesservices/
: element servicesstyles/
: custom styles files for scoped elementtypes/
: element type for Typescriptutils/
: utilities ressouces
-
styles/
: Custom css files -
theme/
:Material UI theme configurations and properties
-
Each file must be suffixed by the name of what it contains.
For example, if you want to create a custom hook, you'll put the file into the hooks
folder with the following name useMyCustomHook.hook.ts
.
It is important because we can identify more easily files during debugging phases.
Components and pages should follow CamelCase