Recent

Author Topic: Newbie in Web Programming, where to start?  (Read 1575 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: 8799
  • 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: 1095
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: 3344
    • 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: 1095
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.

 

TinyPortal © 2005-2018