Migration of Desktop Application to Web: Progress Update

Migration of Desktop Application to Web: Progress Update

Postby Otto » Fri Jun 14, 2024 4:50 pm

Hello friends,


I am currently in the process of converting the desktop program to a web application. In the two GIF files,
you can see the desktop version in action as well as the new web application.
The complicated part with drag & drop is now basically finished. The backend remains practically the same since I am using mod harbour.

Bst regards,
Otto

Image


Image
********************************************************************
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: Migration of Desktop Application to Web: Progress Update

Postby thefull » Sat Jun 15, 2024 4:32 pm

Otto, sincerely, and understanding the complexity of porting a Desktop application to the Web, my admiration for the work you are doing. Unfortunately, at my work, it was decided to abandon Harbor,
to port it to the Web, with other types of tools, such as Angular + Spring boot with Java, dockers, and so on, which adds much more complexity to the solution.

Maybe, I don't know, maybe, if we had had an example like the one you are doing at the time, you would have continued with Harbor,
although also the use of Dbfs, that is another story, you would have had other problems.

I wish you to succeed, where others have failed!
My sincerest congratulations!
Saludos
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
User avatar
thefull
 
Posts: 731
Joined: Fri Oct 07, 2005 7:42 am
Location: Barcelona

Re: Migration of Desktop Application to Web: Progress Update

Postby sysctrl2 » Sat Jun 15, 2024 6:03 pm

Coincido que para aplicaciones web, se deben de usar bases de datos SQL
Cesar Cortes Cruz
SysCtrl Software
Mexico

' Sin +- FWH es mejor "
User avatar
sysctrl2
 
Posts: 1020
Joined: Mon Feb 05, 2007 7:15 pm

Re: Migration of Desktop Application to Web: Progress Update

Postby Otto » Sat Jun 15, 2024 6:12 pm

Dear Rafa,
I understand well what you are writing here: 'Unfortunately, at my work, it was decided to abandon Harbor.'

We ourselves also repeatedly face the problem that when we offer our software to operating companies,
no one wants to take the risk, and the decision-makers then opt for well-known products. Unfortunately, that's the way it is.

I have been developing web applications for a very long time. Unfortunately, I chose the wrong tool back then.
I used ASP, and it was then discontinued. At that time, I focused a lot on extensions for Dotnetnuke,
which was similar to 'WORDPRESS'. But with ASP.NET, everything became so complex that it was practically unmanageable for a single developer.

Then I spent some time just maintaining and expanding my own homepages, but I didn't write any proper programs anymore.

However, as the demand from customers for web solutions kept increasing, I first tried to bring my application t
o the web with PHP and Laravel and MySQL. But the learning curve was very steep, and productivity was poor.

When Antonio then made Mod Harbour possible, I started anew with Mod Harbour.

What I didn't like about HTML was that the source code became very confusing without a library.
I programmed a simple patcher and preprocessor. This allows me to format the code perfectly and clearly. But the program I pass to the server is again pure HTML/JS code.

Without an idea that we as simple application programmers would gain access to AI as we know it today, I created Harbourino.
I was lucky. Only now do I see the full potential.

Practically, the coder's task is reduced to providing good prompts to the AI.
And to manage these modules and keep the code clear, Harbourino is fantastic.
You can quickly format someone else's source code so that you understand it.

But I am very pleased that you take notice of my work.

Best regards,
Otto

***

Image


The frontend transition is practically complete. I think the backend - here I can almost take over everything 1:1 - should also be done quickly.

That's the advantage of mod harbour. Testing is unnecessary because proven code can be used.

Image
********************************************************************
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: Migration of Desktop Application to Web: Progress Update

Postby Otto » Sat Jun 15, 2024 6:29 pm

Cesar,

Basically, I handle all communication with the backend using the fetch API.
The fetch API is a modern interface that uses promises to handle asynchronous HTTP requests.
It is capable of supporting most HTTP methods such as GET, POST, PUT, DELETE, and others.

Therefore, it doesn't matter which endpoint I address.

Whether I call a program that uses DBF files or SQL, JSON or whether I call a PHP file directly, it doesn't matter.

For me, productivity is important. It is a significant task to convert a program that has been developed over 30 years to the web. But with mod harbour,
I can retain the logic and practically only make the new screens in HTML and JS.



Best regards,
Otto
********************************************************************
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: Migration of Desktop Application to Web: Progress Update

Postby sysctrl2 » Sat Jun 15, 2024 6:56 pm

Excelente Otto
Cesar Cortes Cruz
SysCtrl Software
Mexico

' Sin +- FWH es mejor "
User avatar
sysctrl2
 
Posts: 1020
Joined: Mon Feb 05, 2007 7:15 pm

Re: Migration of Desktop Application to Web: Progress Update

Postby Otto » Sat Jun 15, 2024 7:12 pm

Here is a link to the application. You can test the functions, but currently, nothing is being saved.

https://winhotel.space/workschedule/workschedule.prg

The program is used for organizing the work schedules of employees. It consists of 3 tables: the shift schedule, the days off, and the vacation days.

Typically, each employee is entitled to 2 days off per week. This is managed in the program. In the TG column, you can see the days off. A person can have a day off, a vacation day, or be assigned a task at work.

The program ensures that you can only move entries vertically within the day. If you move a person back from the shift schedule, they will be placed exactly in their row. The plan can be easily printed out.

Planned features:

Filter based on the requirements and profile of the employees

Email dispatch to the employees

If you have any further adjustments or additions, please let me know!
********************************************************************
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: Migration of Desktop Application to Web: Progress Update

Postby Antonio Linares » Sat Jun 15, 2024 8:45 pm

Dear Otto,

So nice and professional! Congratulations!

You are doing a great job on the web and porting your apps to the web. It is very motivating for all of us and I really thank you for all the posts, ideas and inspiration that you share here with all of us :-)

Keep doing such a great job. And please keep sharing all your progress with us.
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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Natter and 56 guests