Ron Posted July 23, 2015 Posted July 23, 2015 After 3 months of work, porting a desktop app to Unigui, reaching 16.000 lines of code, including 2.000 lines of Javascript, I have started online testing of my booking app, running it on two separate Amazon EC2 instances: 1. Win 2012 Server, at timebok.com - login: guest/guest 2. Win 2008 Server, at avtalebok.com - login: guest/guest At 1. only, Guest login is readonly and has restricted access. Attached are images when logged in, and I notice: -the toolbar has wrong color -things are definitely responding slower on the 2008 server I am running a standalone app, on port 80 of course, using mysql 5.6, and Unigui build 1172, on both servers. The EC2 instance is the smallest (free) possible, and I am going to upgrade this to see what happens, so that may impact the speed, but I assumed the 2012 opsys was slower.... The app itself is not big, about 23 Mb. But it runs fine on the 2012 server, it seems. I notice a slight flicker when the pattern background is being loaded, but I guess that is hard to avoid....maybe it could be preloaded somehow? But the setup is exactly the same on both operating systems, the very same standalone exe running too. Easy to set up on EC2, takes only 20 minutes if you remember to change security policy and reboot the instance. I really love the Unigui system, amazingly easy to work with and an incredibly productive tool. It would have taken me at least 12 months to build this in pure javascript/Node or php. I my view, Unigui is the only working WebRAD tool around. I even bought Morfik, but had to give that up too. For 6 years I searched for a good tool which should make it possible to do this work in a few months, and finally I found it. Being able to just move thousands of lines of code, without change, including database objects (DAC for MySQL) complete with the SQL, was truly a great timesaver. So thumbs up for a great programming tool which will revolutionize the webapp industry ! 2 Quote
Phxtecno Posted July 23, 2015 Posted July 23, 2015 Embarcadero should include UniGui in Delphi Btw which grid component did you used in these screenshot ?? Quote
Ron Posted July 23, 2015 Author Posted July 23, 2015 I do not use a grid component in those shots. What you see are two HtmlFrames, one showing day and one showing month. Both are set at align Client, and depending on what view you want, one is set visible and the other invisible. I could not use a Pagecontrol for this, as only the visible frame will actually display loaded html. Depending on what data is already loaded, the Htmlframe is updated on date change, the html is preloaded and then the variables are updated and then the script is sent to the frame. Any other JS variable change is made using unisession.addJS. Why do it like this? Because Unigui does not send mouse moves, and for drag and drop you absolutely must have that, and this functionality was one of core requirements, along with net functionality. So there is no way around having the grids in javascript, but it is not hard to create a fluid grid layout in JS. And of course, when there is so much going on at the user interface mouse event level, it is a very good thing - in my opinion - to get a separation of code here, with like 80% of the user interface code in javascript. So there is 2000 lines of JS for the interface, 3000 lines of code in Mainform making up the server side engine logic, and then 10.000 lines spread around in 35 units for other forms, making up a nice and logical separation of things. I could have tried to adapt a commercial or free JS calendar script, but when looking at the event collision routines at some of these scripts, with thousands of lines of code just for that, I knew I could make it simpler myself. My mousemove event is now only 234 lines, so most of the struggle is to just keep it simple. The less code, the less bugs. But Javascript dates.....is an "interesting" issue, and of course we have three different date paradigms in JS, Object Pascal and MySQL, just to be sure that we get enough confused. TIP: avoid using JS time portion of date objects, due to uncontrollable daylight savings issue. Btw, I have opened up the guest account at avtalebok.com, to normal user level, not admin, but now you can test app movement and resize etc. Quote
Ron Posted July 24, 2015 Author Posted July 24, 2015 Well, I had to move this to a domestic VPS with 2Gb RAM, to speed up things, so I am taking down the EC2 instances. Quote
Administrators Farshad Mohajeri Posted July 24, 2015 Administrators Posted July 24, 2015 I really love the Unigui system, amazingly easy to work with and an incredibly productive tool. It would have taken me at least 12 months to build this in pure javascript/Node or php. Thanks for your detailed feed back. Our primary goal is to extend Delphi's RAD approach to web development and I'm very glad to hear that more people are showing that we have succeeded this. I my view, Unigui is the only working WebRAD tool around. I even bought Morfik, but had to give that up too. For 6 years I searched for a good tool which should make it possible to do this work in a few months, and finally I found it. Being able to just move thousands of lines of code, without change, including database objects (DAC for MySQL) complete with the SQL, was truly a great timesaver. Very proud to hear that you see uniGUI as the only working Web RAD tool around. We will continue doing our best to deserve this title. So thumbs up for a great programming tool which will revolutionize the webapp industry ! Thanks again for your support and feed back. Quote
Phxtecno Posted July 24, 2015 Posted July 24, 2015 Very interesting... unfortunately I have no knowledge of JS and web tecnologies in general, thus it's hard for me fully understand the Architecture you have built around your original Delphi project,but soon or later I'll learn :-) Quote
Administrators Farshad Mohajeri Posted July 24, 2015 Administrators Posted July 24, 2015 After 3 months of work, porting a desktop app to Unigui, reaching 16.000 lines of code, including 2.000 lines of Javascript,I have started online testing of my booking app, runningit on two separate Amazon EC2 instances: 1. Win 2012 Server, at timebok.com - login: guest/guest 2. Win 2008 Server, at avtalebok.com - login: guest/guest At 1. only, Guest login is readonly and has restricted access. Attached are images when logged in, and I notice: -the toolbar has wrong color -things are definitely responding slower on the 2008 server Wrong color maybe a result of OS color translation. Try setting the backgroud color to clBtnFace so theme default color will be used. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.