New FastCGI Harbour - Local Sandbox example

328 views
Skip to first unread message

Eric Lendvai

unread,
Jan 22, 2020, 4:35:11 AM1/22/20
to Harbour Users

Just pushed to the github repo  https://github.com/EricLendvai/Harbour_FastCGI  a Harbour specific Sandbox example. 


The main purpose of this new tool is to provide a playground for new Harbour developer to try out some code, without having to manually compile, and be ready to run under a web server.

This is meant to be executed locally. I will probably later provide a Docker container to make it easier to deploy.

This example is a complete multi-page web site using bootstrap 4 and jQuery. with a backend DBF/CDX table.

It also integrates the “monaco” source code editor (the one used if VSCODE). For now I turned of the Harbour syntax highlighting, since we don’t have a definition file for the web based source code editor.


It is compatible will all modern browsers, including FireFox and Chrome.


Sample screen:


fcgi_localsandbox_2020_22_01_001.png


Eric Lendvai

unread,
Jan 24, 2020, 2:44:22 AM1/24/20
to Harbour Users
Just pushed an update that includes the entire set of Harbour functions in the final FastCGI exes. This is Mingw and MSVC compatible. 

Thank you to Maurizio la Cecilia for showing me how to use .hbx files to make easy to pre-link the entire Harbour API!

Mel Smith

unread,
Jan 26, 2020, 12:46:34 PM1/26/20
to Harbour Users
Hi Eric: 

   Good Work !

   In my own CGI case (I use Harbour for all my CGI work on my three current web sites), I only have about 20-30 visitors per day visit two of my sites, and only *one* visited my third site by accident (it is under development and I have not publicized it yet).

   So, I don't need *fast* CGI, I only need *solid* error-free harbour-based CGI -- to go along with all the front-end programming involved. And my new CGI app has 2063 lines so far. And I'm not nearly finished yet. It is basically, a name, address, phone and email update and printing system for the Park I live in.  A re-work and major update to a 10 year old running system. All day I work back and forth between Harbour coding, and front-end stuff (JS, CSS, HTML)

   I have found that my response time is less than 1 second from a web-request by the user (which is me testing). So, my *total possible* customer base is less than 600 for any one of my sites. Will be doing more simultaneous input tests to my CGI server in the next few week.  I have set up my Apache 2.2 to have 5 simultaneous threads feeding my CGI. But, in examining my  Apache logs, simultaneous request are handled (so far) with no problem.

   btw, I have put a deliberate delay in my CGI response (i.e., millisec(500)  ) to put some reality into my individual testing.  But , don't notice any problem at all yet --- and this includes updating COMIX databases, updating forms, and sending pages back to the user, etc. (and again, the user is *me* on this app I'm developing.

   So, I'm still very impressed with how Harbour can handle CGI back-end stuff.

-Mel Smith

Reply all
Reply to author
Forward
0 new messages