Recent

Author Topic: Newbie in Web Programming, where to start?  (Read 1833 times)

incendio

  • Sr. Member
  • ****
  • Posts: 308
Newbie in Web Programming, where to start?
« on: April 22, 2025, 04:02:38 am »
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

  • Hero Member
  • *****
  • Posts: 8801
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Newbie in Web Programming, where to start?
« Reply #1 on: April 24, 2025, 09:51:54 pm »
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][+][-]
  1. uses
  2.   fphttpapp,
  3.   httpdefs,
  4.   httproute;
  5.  
  6. procedure DoHello(ARequest:TRequest; AResponse : TResponse);
  7. begin
  8.   AResponse.Content:='<html><body><h1>Hello,World!</h1></body></html>'
  9. end;
  10.  
  11. begin
  12.   HTTPRouter.RegisterRoute('*', @DoHello);
  13.   Application.Port := 9000;
  14.   Application.Initialize;
  15.   Application.Run;
  16. end.
  17.  
Compile, run, access through http://localhost:9000/ in a web browser of your choice.

Renat.Su

  • Sr. Member
  • ****
  • Posts: 252
    • Renat.Su
Re: Newbie in Web Programming, where to start?
« Reply #2 on: April 24, 2025, 10:58:31 pm »
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.
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

  • Hero Member
  • *****
  • Posts: 1101
Re: Newbie in Web Programming, where to start?
« Reply #3 on: April 25, 2025, 06:06:04 pm »
I hope this works, I did not check.
At least I save this demo long ago.

incendio

  • Sr. Member
  • ****
  • Posts: 308
Re: Newbie in Web Programming, where to start?
« Reply #4 on: April 27, 2025, 03:07:51 am »
Hi guys,

Thank you all for your hints, I will try all and see how it goes.

Edgardo M. López

  • New Member
  • *
  • Posts: 13
    • Edgardo M. López
Re: Newbie in Web Programming, where to start?
« Reply #5 on: April 29, 2025, 01:34:43 am »
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.  :D
https://www.youtube.com/playlist?list=PLQftGio0zcpSHSc7v6FXkoXZqPFCnBfqK

I hope this helps. Greetings from Argentina.

incendio

  • Sr. Member
  • ****
  • Posts: 308
Re: Newbie in Web Programming, where to start?
« Reply #6 on: April 30, 2025, 03:52:50 am »
I 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

  • Sr. Member
  • ****
  • Posts: 308
Re: Newbie in Web Programming, where to start?
« Reply #7 on: April 30, 2025, 04:02:09 am »
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.
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

  • Sr. Member
  • ****
  • Posts: 308
Re: Newbie in Web Programming, where to start?
« Reply #8 on: April 30, 2025, 04:07:59 am »
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

  • Sr. Member
  • ****
  • Posts: 252
    • Renat.Su
Re: Newbie in Web Programming, where to start?
« Reply #9 on: April 30, 2025, 10:41:01 am »
I 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

  • Hero Member
  • *****
  • Posts: 3353
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Newbie in Web Programming, where to start?
« Reply #10 on: April 30, 2025, 12:36:06 pm »
Lazarus 2.2.2 on WIndows 10.

Really ? Lazarus 2.2.2 ?

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Nicole

  • Hero Member
  • *****
  • Posts: 1101
Re: Newbie in Web Programming, where to start?
« Reply #11 on: April 30, 2025, 08:44:50 pm »
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

  • Full Member
  • ***
  • Posts: 113
Re: Newbie in Web Programming, where to start?
« Reply #12 on: May 20, 2025, 03:56:23 pm »
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

  • Hero Member
  • *****
  • Posts: 1415
Re: Newbie in Web Programming, where to start?
« Reply #13 on: May 20, 2025, 04:47:55 pm »
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.

So how will you install or event compile this thing for multiple platforms without source?
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

ginoo

  • Full Member
  • ***
  • Posts: 113
Re: Newbie in Web Programming, where to start?
« Reply #14 on: May 20, 2025, 05:46:26 pm »
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.

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.

 

TinyPortal © 2005-2018