dorm, “The Delphi ORM” and Spring for Delphi Framework

"The Delphi ORM", Spring4D, dorm No Comments »

Great news for all the dorm and Spring4D users!

As you probably know, finally has been announced the official Spring framework for Delphi.

There is a lot of good technology in Spring4D!

So, I’m glad to announce that in a future version (hopefully, the next one) dorm, “The Delphi ORM” will use Spring4D and will become the ORM part of Spring4D.

So, dorm will be part of the Spring4D framework.

More info to come, so stay tuned.

Delphi MVC Web Framework - “Hello World”

Delphi XE, Delphi XE2, Design Patterns, Embarcadero, MVC, RTTI, dorm 4 Comments »

This is the first “Hello World” for my Delphi MVC Web Framework.

  1.  
  2. program DelphiMVCWebFramework;
  3.  
  4. {$APPTYPE CONSOLE}
  5.  
  6. uses
  7.   System.SysUtils,
  8.   MVCEngine in 'MVCEngine.pas',
  9.   BaseController in 'BaseController.pas';
  10.  
  11. var
  12.   mvc: TWebMVCEngine;
  13. begin
  14.   mvc := TWebMVCEngine.Create;
  15.   mvc.AddRoute('/', procedure(Context: TWebContext)
  16.     begin
  17.       Context.Write('Hello World');
  18.     end).Start(8080);
  19.   ReadLn;
  20.   mvc.Free;
  21. end.

Features list (some of them are in the internal roadmap)

  • Completely MVC
  • Addressable with servername/controllername/actionname?par1&par2
  • Addressable with servername/controllername/actionname/par1/par2
  • Can also use anonymous methods as actions for very simple app (in the sample)
  • Really RESTful (Level 3 of the Richardson Maturity Model)
  • Fully integrable into WebBroker and DataSnap
  • Supports multiple resource rapresentations
  • Completely customizable routing using internal formatting or regex
  • Inspired to ASP.NET, Sinatra, Java Spring MVC, Java Restlet
  • Scriptable views support (Pascal, Razor, Lua)
  • Component based
  • Session support
  • ORM support using dorm
  • Classic TDataSet support
  • State server to support real loadbalancing using reverse proxy
  • Can be deployed as standalone (in the example), ISAPI dll and Windows Service
  • Fully support https
  • More to come…
  • This framework is still under development.

    Are you interested in? :-)

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in