Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

Use Case of Transcrypt

Open GoChartingAdmin opened this issue 6 years ago • 1 comments

Hi,

My use case is to send a code snippet in Python to an api which returns back the JS equivalent of that snippet.

Can we use Transcrypt to achieve this objective. If yes, any guidance on how to get started will be most helpful

PS: I can use either a backend in nodejs or golang

Regards

GoChartingAdmin avatar Jan 14 '20 14:01 GoChartingAdmin

The JS snippet would require the runtime of Transcrypt to function. This has already been done for at least one site in the past. It entails running Transcrypt on a server to do the compilation.

The steps used for that applicationn were:

  • Send sourcecode to server, making a uniquely named folder for it on the fly.
  • Compiling as usual, just on the server (which was a Linux machine residing with alwaysdata.com).
  • Show eventual error reports.
  • Sending back the target code, including the runtime.

In that particular case there was also an on-line editor and the code that got sent back was automatically started in the client browser to see the result, including graphics.

JdeH avatar Nov 02 '20 09:11 JdeH

Closing since no further comments, but will mention that something like this was also brought up on issue #828

JennaSys avatar Apr 23 '23 09:04 JennaSys