Developing web client JavaScript applications with WebBroker on the server
Many Delphi developers think that if you need to develop a web solution you have to look for something different to Delphi. So they give up years of Delphi knowledge and start to create a web solution with another technology. Although there are cases where Delphi is not the best choice (for instance, if you are developing a classic website with server-side dynamic generated pages), in most scenarios, Delphi can behave even better than many of the web-only technologies available today. What you need is a good framework to work with. In this recipe, we'll see the WebBroker technology, available since Delphi 4, and will consume it from a JavaScript application. Let's start!
Getting ready
This recipe uses two external open source projects:
DelphiMVCFramework:
A powerful Delphi framework to develop RESTful web services
Project website: https://github.com/danieleteti/delphimvcframework
Written by Daniele Teti (me) and a lot...