Update coding_conventions.md (#350)

Fixed typo missing letter.
This commit is contained in:
Olivier Contant 2023-05-22 00:09:33 -04:00 committed by GitHub
parent 10de50416b
commit 6f9da5f7df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ Contains the logic for each route, including calling the appropriate service fun
- Create a separate controller file for each route to handle the request/response logic. - Create a separate controller file for each route to handle the request/response logic.
- Name controller files using the PascalCase convention and append "Controller" to the file name (e.g., UserController.js). - Name controller files using the PascalCase convention and append "Controller" to the file name (e.g., UserController.js).
- Use controller methods to encapsulate logic related to the route handling. - Use controller methods to encapsulate logic related to the route handling.
- eep controllers thin by delegating complex operations to service or model files. - Keep controllers thin by delegating complex operations to service or model files.
#### Services #### Services
@ -101,4 +101,4 @@ Use the conventions found in the `data-provider` directory for handling data ser
### State Management ### State Management
Use [Recoil](https://recoiljs.org/) for state management, but *DO NOT pollute the global state with unnecessary data*. Instead, use local state or props for data that is only used within a component or passed down from parent to child. Use [Recoil](https://recoiljs.org/) for state management, but *DO NOT pollute the global state with unnecessary data*. Instead, use local state or props for data that is only used within a component or passed down from parent to child.