flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OK <p...@olafkrueger.net>
Subject Re: [FlexJS][POC] JSFiddle for FlexJS / Compile as-a-service
Date Fri, 28 Apr 2017 14:26:40 GMT
Hi again,
I've had some time yesterday evening and improved the POC. 
It is possible now to compile FlexJS code that is coming from the browsers
Textarea. The compiled result is displayed via an Iframe [1].

The current worklfow is like this:
- Enter some code
- Click "Compile and run"
- The POST service is invoked with the code as payload
- A new tmp project dir is created at server side
- A Main.mxml with the passed code is created inside the tmp project dir
- The compiler is invoked
- The service response with the URL to the compiled js project and the
compiler output

I'm using nodejs as server. [2]
Cause I've none at all experience with nodejs the code might be weird ;-)
All in al this is just a quick hack...

Next step would be to pimp the UI and try to integrate the Monaco or Ace
editor.
Unfortunately, I've no proper internet connection at home for some days so
this will take some time...

I'd appreciate any feedback if I'm on the right track!

Thanks,
Olaf

[1] https://snag.gy/4Md0lJ.jpg
[2] https://gist.github.com/anonymous/2632b00bf51bc77565657569217c75a4



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-POC-JSFiddle-for-FlexJS-Compile-as-a-service-tp61369p61406.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Mime
View raw message