'JS API which generate image from Reactjs app (no used of browser)

My goal is to create an API which generate image from dataviz. I used Reactjs with recharts to generate charts and then I generate an image of the graph and send it to an API. It works fine behind a browser. My React App this compiled into a signle JS file

How can I execute on a server side, I tried with a node.js server without success



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source