Your EXE into a Web app

Your EXE into a Web app

Postby Antonio Linares » Fri Oct 12, 2018 9:34 am

1. With FiveWin we jumped from MsDos (Clipper) to Windows (Clipper)

2. With Harbour and FWH we jumped from Windows 16 bits to Windows 32/64 bits

3. Next logical step is to jump from the Desktop to the Internet/web :-)

The idea is not to rewrite your app. You have invested a lot of time and effort to build it but now
your customers are requiring to use the app from the web (and internet).

Surely some of you have also done some research about this. Here I am going to share my findings with you:

1. I got an Amazon EC2 server (free for one year). I selected a Linux server.
2. I installed X11 and Wine (Windows emulator) on it.
3. Install xming (on Windows) or xquartz (os Mac)
4. From my desktop computer I do a ssh -X ... connection to the server (use putty from Windows). -X means to route X11 to my computer.
5. Start your remote Windows app like this: wine myap.exe
6. You are managing your EXE remotely from your desktop :-)
Done!

Next, lets use it as a web page:
1. Install vncserver on the Linux server.
2. start vncserver and choose a connection password
3. From your desktop computer do a ssh -L 5902:localhost:5902 ... to the server. -L means route events to localhost
4. Use noVNC to connect to localhost:5902
5. You get connected to the remote desktop and launch your EXE from a web page! :-)

A commercial alternative to these is to use Windows remote desktop and a Windows server.

I appreciate your comments and alternatives
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Your EXE into a Web app

Postby Silvio.Falconi » Fri Oct 12, 2018 10:07 am

Nice.
- to proceed to the first possibility, a small guide is welcome, perhaps with step by step procedures to pubblish here

- para pasar a la primera posibilidad, una pequeña guía es bienvenida, quizás con procedimientos paso a paso que podría publicar aquí
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Your EXE into a Web app

Postby Jack » Fri Oct 12, 2018 10:31 am

Antonio,
I think you are right ==> 3. Next logical step is to jump from the Desktop to the Internet/web .

We need a FIVEWEB tool in other to jump to the web .
Remote desktop is a good step but what we need is Web Development Tool.

Thanks ,

Philippe
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: Your EXE into a Web app

Postby Carles » Fri Oct 12, 2018 1:13 pm

Jack,

Forgive my concern... what does fiveweb tool mean? What tool do you think would be good for you to develop web applications?
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Your EXE into a Web app

Postby James Bott » Fri Oct 12, 2018 10:30 pm

Antonio wrote:
5. You get connected to the remote desktop and launch your EXE from a web page!


This reminds me of the old days with terminals and a mainframe. It seems we have gone a full circle.

I do wonder about performance.

What are the advantages of doing this vs just having the data on the web and the app on a PC?
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Your EXE into a Web app

Postby nageswaragunupudi » Sat Oct 13, 2018 12:18 am

What are the advantages of doing this vs just having the data on the web and the app on a PC?

Instead of having to install the application on your PC, you can sit anywhere in the world, pick up any pc or laptop or tablet and just go to the website and start working on a full-fledged windows program with all its UI elements, which will be far better than working with a php or asp page.

Performance? These are the first steps to prove a concept. If the data and application reside on the server, the performance should be great, subject only to the speed of internet connection.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Your EXE into a Web app

Postby Carlos Mora » Sat Oct 13, 2018 3:37 pm

Nages,
nageswaragunupudi wrote:...which will be far better than working with a php or asp page.

better? I'm not sure. I've seen amazing apps written using web technologies.
Did you know Electron? https://electronjs.org let's you pack your web app into an EXE, the right opposite of this thread subject :)
Well known samples of that are Skype, Whatsapp for Desktop, Slack for Desktop , Postman (app for developing REST APIs) and one of the best: Visual Code Editor. I'm 95% sure Avast UI and MalwareBytes UI are also Electron apps.
If using web technologies you can write IMO one of the best code editors in the history, or Skype (Both Microsoft products) and target Windows, OSX and Linux with the same code, I think they shouldn't be that bad.

KR
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Re: Your EXE into a Web app

Postby Silvio.Falconi » Sat Oct 13, 2018 4:45 pm

De todos modos, queridos señores es deseable un producto que proviene del equipo de Fivetech del cual hay garantías, tal vez incluso productos de terceros como Terraco o Fiveweb también funcionen, pero sin una demostración que podamos probar no podemos comprar una caja cerrada y con muy pocas garantías de soporte. , especialmente si estos productos llegan al otro lado del globo. Espero y quiero un producto de Fivetech que sea compatible con los archivos dbf que usamos en nuestras aplicaciones sin hacer conversiones y reconversiones, creo que este es el deseo de todos o más bien de la mayoría de los usuarios de fivewin y Harbour

anyway, dear lords is desirable a product that comes from the Fivetech team of which there are guarantees, maybe even third-party products like Terraco or Fiveweb also work but without a demo to try we can not buy a closed box and with very few guarantees of support , especially if these products arrive on the other side of the globe. I hope and I want a product of Fivetech that is compatible with the dbf files the same we use in our applications without making conversions and reconversions in and output, I think this is the desire of all or rather the majority of users of fivewin and Harbor
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Your EXE into a Web app

Postby Carles » Sat Oct 13, 2018 6:16 pm

Hi friends !

I think that in general you have 2 options: Or write code in a web environment or write code in a windows environment. Everything else is deceived.

I'm seeing that people are waiting for something magical. Friends ... many of us have been learning a style life. Now we have to learn another style, that's all. For me the question is ... which way is the easiest?

Maybe I forgot one more option. The joker of Mr. Linares ;-)

Regards.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Your EXE into a Web app

Postby Otto » Sat Oct 13, 2018 7:31 pm

Hello,
we use RDP as Antonio suggest since many years with success.

Best regards,
Otto
Last edited by Otto on Sun Oct 14, 2018 7:19 am, edited 1 time in total.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Your EXE into a Web app

Postby Otto » Sat Oct 13, 2018 8:04 pm

Hello,
with the new RemoteDesktop from Windows Store you can setup size again like in RDP.
I use Version 10.1.1046.0.
Best regards,
Otto
Last edited by Otto on Sun Oct 14, 2018 7:26 am, edited 1 time in total.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Your EXE into a Web app

Postby nageswaragunupudi » Sun Oct 14, 2018 5:24 am

Carles wrote:Maybe I forgot one more option. The joker of Mr. Linares ;-)


Openly insulting Mr. Antonio Linares, calling him a joker and heckling at him in an open forum like this is very indecent and highly objectionable. I strongly protest against Mr. Carles' inappropriate behavior in making these arrogant remarks.

I always limited my role in these forums to provide support to users and never got involoved in personal comments. But this time it has gone beyond limits of tolerance.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Your EXE into a Web app

Postby RAMESHBABU » Sun Oct 14, 2018 5:54 am

Dear Friends,

Carles wrote:
Maybe I forgot one more option. The joker of Mr. Linares ;-)


Most of us are here in this forum past 13 years.

We have been very friendly with good respect to
each other. And I have a great respect particularly
for Mr.Antonio and other team members like
Mr.Nageswara Rao.

Mr.Antonio's FiveWin technologies have given life to many of
our Clipper Applications, which are all successfully running
with great appreciation from our clients.

I never saw such a rude and disrespectful comment made by
Mr. Carles, so far about our beloved guru Mr.Antonio, in our
Forum.

It is very hurting and painful. I strongly condemn Mr. Carles
attitude towards our seniors.

-Ramesh Babu
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: Your EXE into a Web app

Postby Enrico Maria Giordano » Sun Oct 14, 2018 7:01 am

For me Carles meant to say that Antonio is our ace in the hole, a wild card that can change its value accordingly to our needs. I'm sure no offence intended.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Your EXE into a Web app

Postby Jack » Sun Oct 14, 2018 7:39 am

When we talk about web, we d'n talk about RDP .

If we want to start from 0, we have PHP or C# …

What we are looking is coding just like in the past and that the Tools convert it .

I think that Antonio start fiveweb a few year ago , is't it a goog way . Could we have samples of code just like we have with Harbour or fivewin ?
Why not having a special index in the forum about this ?

Thanks

Philippe.
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 66 guests