Open ViniciusLAAraujo opened 7 months ago
I believe styled-components is useful for keeping things organized and allows for practicing some vanilla CSS as well. Additionally, it has an easy entry to learn.
The idea behind services and mappers: I suggest having a general configuration file for the API and separating each API call into a specific folder with its corresponding service and mapper. For instance: user, userService, userMapper. Within userService, we would have functions like createUser (putUser), where the request is made, the mapper is utilized, and the result is returned in the required format.
Specific interfaces used in the request for the user route would be located in the "types" section.
Btw, I'm not sure if we really need an interface in this scenario.
In response to our recent discussions and decisions from our last meeting, I've made some changes to the draft to better align with the current thoughts (to use vite, etc). I've also taken the initiative to document our early concepts in a markdown file named "folder_structure.md". This file should explains the draft concepts for each folder and "main file".