makeread.me icon indicating copy to clipboard operation
makeread.me copied to clipboard

Move Nunjucks Logic from Frontend to Backend

Open ShaanCoding opened this issue 1 year ago • 1 comments

Feature Details

As a software developer I want to move the Nunjucks rendering logic from the components located in the frontend, to instead the backend, so that I can have better maintainability of our application as well as improve our performance

Cover any details here, e.g. feature number and stakeholders

Expected Functionality

  • Move nunjucks rendering logic from frontend to backend
  • Allow backend API route to accept list of components as well as the variable data and reply with the markdown layout to render
  • Add debouncing on the API call instead of onChange to save on network requests
  • Replace useEffect with T3/react-query on API calls so that it is responsive

ShaanCoding avatar Apr 13 '24 09:04 ShaanCoding

Not sure on this one as it keeps server fees very low / almost free with caching. Will tackle later

ShaanCoding avatar Apr 27 '24 08:04 ShaanCoding

Whilst the way I'm doing it isn't ideal, it'll save on a lot of expensive computations, keeping loads low through caching. Not planned

ShaanCoding avatar Aug 07 '24 13:08 ShaanCoding