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):
uses
fphttpapp,
httpdefs,
httproute;
procedure DoHello(ARequest:TRequest; AResponse : TResponse);
begin
AResponse.Content:='<html><body><h1>Hello,World!</h1></body></html>'
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.