FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Desktop to web-based program
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Desktop to web-based program
Posted: Thu Jun 26, 2025 03:39 PM
Hi,

I allway created Desktop-programs with FiveWin.
No i have been asked to transform one to a webbase-program that is connected to a SQL-database, running on a Windows-server.

What is the easyiest way to convert the program? Is it with mod_harbour?
Is it still being maintained? I see that https://github.com/FiveTechSoft/mod_harbour is more than 3 years old.
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Desktop to web-based program
Posted: Thu Jun 26, 2025 09:18 PM
Dear Marc,

The easiest and quickest way for a web app using Harbour is using https://www.runnerxbase.app/
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 07:58 AM

Hello Marc,

to make a good suggestion here, one would need to know exactly what you want to do.

Self-hosting, hosted system – what is the easiest way to convert the program?

Could you maybe post a few screenshots so we can get an idea?

Best regards,

Otto

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 08:14 AM
Otto wrote: Hello Marc,
to make a good suggestion here, one would need to know exactly what you want to do.
Self-hosting, hosted system – what is the easiest way to convert the program?
Could you maybe post a few screenshots so we can get an idea?
Best regards,
Otto
Otto,

Fortunately, it is an easy program to convert to. That allows me to get more used to web programming.

The program is used to test inputs and outputs in a chemical company after installing. So far it is just a simple database, where users get access to a certain part of the database that he is allowed to test. He have to fill in a form (GET-fields and comboboxes). There are also buttons on the dialog for sending OPC-commands to a process server, whereby different outputs are sent and read back to the form. If everything is OK, this is stored in the database.
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 08:55 AM
Hi Marc,

for your project, I’d recommend starting with a simple web prototype generated by ChatGPT – e.g. a form with input fields, user-specific access, and a dummy OPC layer.

Once it runs, you can gradually structure the code using a preprocessor and a block-based patching system. I follow a pattern I call Harbourino-style for that – where logic, layout, and data handling are cleanly separated into small, reusable blocks.

A good example:
In my current DBF viewer project, I just removed jQuery this way. Instead of rewriting everything at once, I moved only the affected logic into a subfolder (jquerydir/) and patched it back into the main file. This let me replace each block step-by-step with native JavaScript while keeping the app fully functional.

This modular approach gives you clean code, better maintainability, and flexibility for customer-specific variations later on.

Best regards,
Otto






Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 09:08 AM
Marc Vanzegbroeck wrote: Hi,

I allway created Desktop-programs with FiveWin.
No i have been asked to transform one to a webbase-program that is connected to a SQL-database, running on a Windows-server.

What is the easyiest way to convert the program? Is it with mod_harbour?
Is it still being maintained? I see that https://github.com/FiveTechSoft/mod_harbour is more than 3 years old.
Hi,

You don't need to convert any code and just only study SQL commands. Keep your all FiveWin GUI.
Connect to Remote Access IP MySQL server. That's All.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 09:30 AM
richard-service wrote:
Hi,

I allway created Desktop-programs with FiveWin.
No i have been asked to transform one to a webbase-program that is connected to a SQL-database, running on a Windows-server.

What is the easyiest way to convert the program? Is it with mod_harbour?
Is it still being maintained? I see that https://github.com/FiveTechSoft/mod_harbour is more than 3 years old.
Hi,

You don't need to convert any code and just only study SQL commands. Keep your all FiveWin GUI.
Connect to Remote Access IP MySQL server. That's All.
Richard,

I think you misunderstood.
What I need to convert is the program from desktop to webbase, not the connection to SQL.
The desktop versions was already running on a SQL-database.
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 09:49 AM
Marc Vanzegbroeck wrote:
Hi,

I allway created Desktop-programs with FiveWin.
No i have been asked to transform one to a webbase-program that is connected to a SQL-database, running on a Windows-server.

What is the easyiest way to convert the program? Is it with mod_harbour?
Is it still being maintained? I see that https://github.com/FiveTechSoft/mod_harbour is more than 3 years old.
Hi,

You don't need to convert any code and just only study SQL commands. Keep your all FiveWin GUI.
Connect to Remote Access IP MySQL server. That's All.
Richard,

I think you misunderstood.
What I need to convert is the program from desktop to webbase, not the connection to SQL.
The desktop versions was already running on a SQL-database. Marc,

I see.
If you want to Good Web solution, we can help you for biz.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 12:29 PM

Antonio, Is there any way to compile RX.EXE to include rddads?

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 03:48 PM
Giovany,

RX will help you understand and create your first web designs. It's true that it's not compiled for use with ADS, MySQL, Postgree, SQLite, etc., because the goal is something else: to get started in the web world. I think it's a good tool that will help you understand this new landscape. If you think you're ready, I recommend the next step, UT.

https://carles9000.github.io/

And if you need large, powerful applications, mod-harbour is an excellent alternative, but you need a web programmer level.

C.
Salutacions, saludos, regards

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

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 03:53 PM
Hi,
Marc Vanzegbroeck wrote: Fortunately, it is an easy program to convert to. That allows me to get more used to web programming.

The program is used to test inputs and outputs in a chemical company after installing. So far it is just a simple database, where users get access to a certain part of the database that he is allowed to test. He have to fill in a form (GET-fields and comboboxes). There are also buttons on the dialog for sending OPC-commands to a process server, whereby different outputs are sent and read back to the form. If everything is OK, this is stored in the database.
For a programmer who builds management apps on Windows and wants to jump into web development, here are the 20 most important things to study, ranked by priority:

Core Fundamentals (1-5)

1. HTTP/HTTPS and Client-Server Architecture**
Understanding how web communication works, status codes, headers, cookies, and sessions. This is the foundation for everything else.

2. HTML5 and Semantic Web
Proper document structure, accessibility, basic SEO, and markup best practices.

3. CSS3 and Responsive Layout
Flexbox, Grid, media queries, and adaptive design. Including preprocessors like Sass/SCSS.

4. Modern JavaScript (ES6+)
Modern syntax, promises, async/await, modules, destructuring, arrow functions, and DOM manipulation.

5. Web Databases
SQL optimized for web, NoSQL (MongoDB), data modeling for web apps, and scalability concepts.

Backend and Architecture (6-10)

6. Main Backend Framework
Pick one and master it: Node.js/Express, Python/Django/Flask, C#/ASP.NET Core, Java/Spring Boot, or PHP/Laravel based on your background.

7. RESTful APIs and GraphQL
API design, versioning, documentation with Swagger/OpenAPI, JWT authentication, and security best practices.

8. Web Security
OWASP Top 10, XSS, CSRF, SQL injection, authentication, authorization, HTTPS, data sanitization.

9. State and Session Management
Cookies, localStorage, sessionStorage, JWT tokens, OAuth 2.0, distributed session handling.

10. Testing and Debugging
Unit testing, integration testing, browser dev tools, API testing, TDD/BDD approaches.

Advanced Frontend (11-15)

11. Modern Frontend Framework
React, Vue.js, or Angular. State management (Redux, Vuex), routing, reusable components.

12. Build Tools and Bundlers
Webpack, Vite, npm/yarn, Babel transpilation, minification, tree-shaking, module bundling.

13. Performance and Optimization
Lazy loading, code splitting, image optimization, CDN, caching strategies, Core Web Vitals.

14. PWA and Modern Web Technologies
Progressive Web Apps, Service Workers, modern Web APIs, offline functionality.

15. Version Control for Web
Git workflows specific to web development, branching strategies, basic CI/CD.

Infrastructure and Deployment (16-20)

16. Containerization and Deployment
Docker, Docker Compose, basic microservices concepts, cloud deployment.

17. Cloud Services
Basic AWS/Azure/GCP, hosting services, database as a service, cloud storage.

18. Monitoring and Logging
Error tracking, performance monitoring, analytics, structured logging, alerts.

19. CI/CD and Automation
GitHub Actions, GitLab CI, Jenkins, automated testing, deployment pipelines.

20. Scalable Architectures
Load balancing, caching (Redis), CDN, database scaling, microservices vs monoliths.

Learning Path Recommendation

Given your background in management applications, I'd suggest starting with points 1-5, then jumping to point 6 (choosing a familiar backend like Harbour), following up with 7-8 for security, and then tackling frontend with points 11-12.

The advantage you have is your experience with business logic and databases, which totally transfer over. The biggest shift will be adapting to HTTP's stateless model and the frontend/backend separation.

Your existing skills in data management, user workflows, and application architecture will give you a solid head start - you just need to learn the web-specific delivery mechanisms and tools.

If you want to make professional apps for clients, this is what you need to get started. Anyone who says otherwise is simply lying :D

C.
Salutacions, saludos, regards

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

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Desktop to web-based program
Posted: Fri Jun 27, 2025 05:27 PM

Hi Marc,

The list that was shared is technically correct – and if someone plans to become a full-stack enterprise developer from scratch, it can be useful.

But for your case, I think it's overkill.

You already have a working business application and experience in data workflows. Today, with tools like ChatGPT, you can generate a working web prototype in minutes:

a HTML form with comboboxes

a connection to a SQL database

server-side validation

and even dummy buttons for OPC-simulation

You don’t need to "study 20 things" – you just need a few smart prompts and a working mindset.

The best way to start: run it on a standalone server with test data only.

That way, even if you make mistakes or miss a security detail – it doesn’t matter.

Once the basics are running, you’ll learn incredibly fast. Web programming becomes much easier once you see things working in practice.

Best regards,

Otto

Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: Desktop to web-based program
Posted: Tue Jul 01, 2025 12:09 AM

Si solo es un formulario que completa datos y los graba en la base de datos, creo que un php simple puede servirte.

Depende de que posea tu servidor web, pero en todo caso, es una salida rapida para convinar con tu sistema Fivewin.

Si necesitas ayuda con eso, haslo saber y podemos ayudarte

Continue the discussion