Newbie in Web Programming, where to start?
lazarus / 38-Networking and Web Programming
----------------------------------------------------------------------
incendio · 2025-04-22 02:02
Hi guys,
I am a newbie in Web Programming and my skill in Lazarus is also
mediocore ,
want to make a website that connect to firebird database server with
functionalty create, update,insert, and delete data.
Where can I start? Maybe there are an example that I can learn?
Thanks in advance.
----------------------------------------------------------------------
Leledumbo · 2025-04-24 19:51
Database access is the same everywhere, focus your learning on the web
part first. Here's a probably still adequate starting point. It needs
rewriting, I'd like to drop the old routing design and only use the
new one, but here's the hello, world (also in the tutorial):
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i uses
fphttpapp, httpdefs, httproute; procedure DoHello(ARequest:TRequest;
AResponse : TResponse);begin AResponse.Content:='
Hell
o,World!
'end; begin HTTPRouter.RegisterRoute('*',
@DoHello); Application.Port := 9000; Application.Initialize;
Application.Run;end. Compile, run, access through
http://localhost:9000/ in a web browser of your choice.
----------------------------------------------------------------------
Renat.Su · 2025-04-24 20:58
Quote from: incendio on April 22, 2025, 04:02:38 amHi guys,
I am a newbie in Web Programming and my skill in Lazarus is also
mediocore ,
want to make a website that connect to firebird database server with
functionalty create, update,insert, and delete data.
Where can I start? Maybe there are an example that I can learn?
Thanks in advance.
I made simple demo example how to use Lazarus in web. Stack - Lazarus
as a backend IDE without any other depenndency: only firebird/sqlite3
connection units (IBConnection and sqlite3conn) and fpWeb. Frontend:
jQuery and JS plugin dataTable https://github.com/Al-
Muhandis/dataTable-demo
----------------------------------------------------------------------
Nicole · 2025-04-25 16:06
I hope this works, I did not check.
At least I save this demo long ago.
----------------------------------------------------------------------
incendio · 2025-04-27 01:07
Hi guys,
Thank you all for your hints, I will try all and see how it goes.
----------------------------------------------------------------------
Edgardo M. López · 2025-04-28 23:34
Hello.
Maybe this helps. I've created a series of content about creating web
applications with Lazarus and WebLaz.
Here's my playlist. Maybe it'll help you get started.
https://www.youtube.com/playlist?list=PLQftGio0zcpSHSc7v6FXkoXZqPFCnBf
qK
I hope this helps. Greetings from Argentina.
----------------------------------------------------------------------
incendio · 2025-04-30 01:52
Quote from: Nicole on April 25, 2025, 06:06:04 pmI hope this works, I
did not check.
At least I save this demo long ago.
This demo isn't about web programming, but thanks anyway.
----------------------------------------------------------------------
incendio · 2025-04-30 02:02
Quote from: Renat.Su on April 24, 2025, 10:58:31 pmQuote from:
incendio on April 22, 2025, 04:02:38 amHi guys,
I am a newbie in Web Programming and my skill in Lazarus is also
mediocore ,
want to make a website that connect to firebird database server with
functionalty create, update,insert, and delete data.
Where can I start? Maybe there are an example that I can learn?
Thanks in advance.
I made simple demo example how to use Lazarus in web. Stack - Lazarus
as a backend IDE without any other depenndency: only firebird/sqlite3
connection units (IBConnection and sqlite3conn) and fpWeb. Frontend:
jQuery and JS plugin dataTable https://github.com/Al-
Muhandis/dataTable-demo
I tried to run this demo, there was an error :
EDatabaseError : Database connect string (DatabaseName) not filled in!
----------------------------------------------------------------------
incendio · 2025-04-30 02:07
Tried to start Web App via menu
Project->New Project->Web Browser Application, got an error
There is no Free Pascal Compiler, pas2js file not found!
Lazarus 2.2.2 on WIndows 10.
----------------------------------------------------------------------
Renat.Su · 2025-04-30 08:41
Quote from: incendio on April 30, 2025, 04:02:09 amI tried to run this
demo, there was an error :
EDatabaseError : Database connect string (DatabaseName) not filled in!
So... You must specifiy database name and other DB database parameters
in demo.ini. Look readme.md
----------------------------------------------------------------------
dbannon · 2025-04-30 10:36
Quote from: incendio on April 30, 2025, 04:07:59 amLazarus 2.2.2 on
WIndows 10.
Really ? Lazarus 2.2.2 ?
Davo
----------------------------------------------------------------------
Nicole · 2025-04-30 18:44
This database demo is not easy to get working. I never managed it.
It was easier to work with my own database.
The guys here were that helpfully when I started and that patiently.
Do you have IBX installed?
The guys, who wrote it are around. The support is better than every
commercial offers.
I was Embarcadero custumer and so glad to have changed. The support
cannot compare.
And it is free instead of costing thousands of dollars.
In other words, if you want to work with database install IBX.
And if you want to work with Firebird: Flamerobin.
All free and great.
----------------------------------------------------------------------
ginoo · 2025-05-20 13:56
I wrote a library to make web rad applications and I wrote it for
internal use and it works very well. Maybe in the next few years I
will give it away for free, but without the sources. Because it took
me a lot of time and money.
----------------------------------------------------------------------
dsiders · 2025-05-20 14:47
Quote from: ginoo on May 20, 2025, 03:56:23 pmI wrote a library to
make web rad applications and I wrote it for internal use and it works
very well. Maybe in the next few years I will give it away for free,
but without the sources. Because it took me a lot of time and money.
So how will you install or event compile this thing for multiple
platforms without source?
----------------------------------------------------------------------
ginoo · 2025-05-20 15:46
Quote from: dsiders on May 20, 2025, 04:47:55 pmQuote from: ginoo on
May 20, 2025, 03:56:23 pmI wrote a library to make web rad
applications and I wrote it for internal use and it works very well.
Maybe in the next few years I will give it away for free, but without
the sources. Because it took me a lot of time and money.
So how will you install or event compile this thing for multiple
platforms without source?
I understand what you mean, the problem is that I had no money and I
had to make it and now it works. If I didn't make it I would have had
to throw away all my work, for me it was fundamental. So maybe I give
it away for free but without sources because doing this thing has
impoverished me a bit (it took me time to do it). Making it available
already takes time. Now it works on Linux then I'll see. Another
problem I have is that I wrote it with Lazaus and I showed the result
to someone from Delphi and he told me that they would advertise it,
and so if I make it available it would also have to work with Delphi
and it takes more time. And I also have to work. It's like a gift that
I would give. But I won't give away the sources (I've impoverished
myself a bit to do it), it will be precompiled, I have no idea now.
And it's not certain that I will even give it away.