FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour webserver using RESTFUL API and responsive
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Sat Jun 09, 2018 08:19 AM

Dear Antonio,
at the moment I have following situation:

a scan is posted through QRCode APP.
Depending on the content Symfony sends following answers:

If a user is not known to the system you get the thankYou.
If there is a rule existing the link of the rule is called.
If a QRCode starts with a certain code the Symfony intern webpage is responding.
All the qrcodes are stored in the MySQL database.

I have set up a WINDOWS server with a fixed IP in my office.
Maybe we could setup a Habour RESTFUL server there and test if we get it working.
Only I never did it and do not know where to start.

Best regards,
Otto

app/Resources/views/default/
app/Resources/views/mails/
app/Resources/views/qrcodelanding/
app/Resources/views/qrcoderules/
app/Resources/views/thankYou/
app/Resources/views/user/
app/Resources/views/base.html.twig

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Fri Jun 15, 2018 09:41 AM
Kibu/FW qrcode - to see what is inside.

Best regards,
Otto

http://www.atzwanger-software.com/fw/ToSeewhatisinside.html
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: webserver using RESTFUL API and responsive
Posted: Fri Jun 15, 2018 10:05 AM

Otto, link not run for me

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Fri Jun 15, 2018 12:07 PM
Dear Cristobal,

https://youtu.be/G7B7MRqdSl0

I uploaded the file to YouTube.
Best regards,
Otto
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Sat Jun 16, 2018 08:33 AM
Hello,
here is another program where I would like to use Fivewin/Harbour and Fiveweb.
For me using Symfony is a step learning curve.

In Austria every bill must have a QR code.

Scanning this QR code takes automatically note of all your expenses and spendings.
I would like to program this “drivers log” in FIVEWEB. At the moment I am trying with Symfony.

Best regards,
Otto







Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: webserver using RESTFUL API and responsive
Posted: Sat Jun 16, 2018 10:37 AM
Dear Otto,

I have created this simple FiveWeb test for you:

qrserver.prg
Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main( cParams )

   ? cParams

return nil


And I have placed it at http://www.fivetechsoft.com/cgi-bin/qrserver?12345 (click it)

Please notice that the qrcode is supplied after the ?
You can supply any qrcode to it and it will simply show it in the web browser screen

As far as I remember you have a BlueHost account, so you can easily test it and modify it from your own BlueHost site too :-)
No need to mess with IIS settings, etc...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Sat Jun 16, 2018 11:06 AM

Dear Antonio,
thank you. This easy it should be.
Now I have to talk with Manuel. I think the APP must be changed. We should get handyID + content of the qr code.
Maybe this should be secured in a way.
Can you explain please how I get this sample running on Bluehost.
I wish you a nice weekend.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: webserver using RESTFUL API and responsive
Posted: Sat Jun 16, 2018 11:51 AM
Otto,

> Can you explain please how I get this sample running on Bluehost

1. If you have an Apple computer, simply go to a terminal window and write:

ssh otto@www.ottoweb.com

where otto is your login name in Bluehost and ottoweb is the name of your site

you will be prompted to accept a key, choose yes. Then write your password.

2. If you don't have an Apple computer, simply download and execute "Putty" from Windows and do the same steps

https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe

Please try these steps and lets me know how far you go :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 989
Joined: Thu Nov 24, 2005 03:01 PM
Re: webserver using RESTFUL API and responsive
Posted: Sat Jun 16, 2018 07:36 PM
Hi Otto,
Otto wrote:
here is another program where I would like to use Fivewin/Harbour and Fiveweb.
For me using Symfony is a step learning curve.

Symfony is a great framework, one of the best without a doubt... but it's learning curve is a little bit heavy.

I browsed to http://www.myquickinfo.com/ but I wasn't able to download the QR Kibu App, neither find it in the Google Play store.
¿Can you share a link to download it?

KR
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Sun Jun 17, 2018 07:45 AM

Hello Carlos,
the Project is not released yet.
I send you an email.
Best regards,
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Mon Jun 15, 2020 05:41 PM
Hello,
I am now in the process of converting the QRCode project from SQL to DBF. Here I build an order page for the QR code signs.


https://www.modharbour.club/mh_portfolioqrcode/portfolio.prg

Best regards,
Otto
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: webserver using RESTFUL API and responsive
Posted: Tue Sep 08, 2020 06:11 PM
Hello,
Yesterday I bought a painting. It not only decorates our office but also serves as a background for our webpage for the new mod harbor project.
The whole web page is made with DBF files and mod harbor.
Best regards,
Otto




Continue the discussion