Do u think supporting Redis by default is good idea.
I think supporting Redis might be an option. Though I don't think it should be by default.
In what way do you think we can apply it in projects generated by Goxygen?
Redis is often introduced to a web project when there is a need to cache something and all the other approaches do not lead to performance improvements. But this usually happens on later stages of a project and always require careful assessment.
I have implemented this part.
- Changes in codegen.Generate() and templates structure.
codegen.Generate() should be able to figure out which framework to use depending on the input parameters.
Please take a look at the PR: Shpota/goxygen#32
--frontendoption. These are breaking changes and I'm going to merge them only after I check and test everything precisely. I have not included the regenerated
clipackage at this moment, but rather introduce non-breaking changes in the
codegenpackage that would allow the further extension. I was also thinking on reusing the similar files in js and ts projects (like env setup, images, etc) but I haven't tried developing this concept yet.
go.sumduring generation. It is useful as the user would get the latest patches when these files are generated on their machine. At the same time, some patches might introduce breaking changes (they should not, but it is still possible).