climate-cooperative/home-energy-calculator

Move Calculations to API

Opened this issue · 0 comments

Description

The FE does a lot of heavy lifting in terms of calculation, especially when rendering the results page. This is a perfect example of something to move to the backend.

This also provides a better separation of concerns between logic and rendering.

In terms of contribution, this will also help introduce an area for improvement and pattern for expansion.

Technical Notes

Create new path in api to handle calculation of results. /score???

Risks

Both FE and BE will need to be worked on simultaneously. Some coordination there.

Related Issues Or Discussions

[...Issues]