Recent

Author Topic: Backend with lazarus  (Read 4346 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Backend with lazarus
« on: September 29, 2015, 05:20:04 pm »
Hello guys , I wanted to ask you , today the mile solution for backend work with Lazarus , what ? Let's assume that I want to develop the frontend of a site with HTML 5 and Javascript . What part do you recommend to use for the backend and as a dialogue between the two ?
Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

count

  • New Member
  • *
  • Posts: 16
Re: Backend with lazarus
« Reply #1 on: September 30, 2015, 12:01:58 am »
Hi!
You can use cgi or fast-cgi... have a look at FreeSpider by Motaz, I use it and actually I'm happy )

avra

  • Hero Member
  • *****
  • Posts: 2584
    • Additional info
Re: Backend with lazarus
« Reply #2 on: September 30, 2015, 03:00:56 pm »
If you have a lot of time to study, then you can take a look at very powerful mORMot framework and use JSON-RPC for interfacing with frontend clients.
http://www.synopse.info

If you are in a hurry then you could simply use CeosMW server component to handle JSON-RPC requests from your HTML5/Javascript clients.
http://jbsolucoes.net/ceosmw
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Backend with lazarus
« Reply #3 on: September 30, 2015, 09:00:14 pm »
Thank you avra, to the time motivation i chosen ceosmw. But i have a problem, I did not understand how to pass parameters from client to server. I attach the server (very simple) and the folder with the client html / ajax. If you can tell me where I'm wrong I would be grateful. Thanks a lot
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018