Delphi MVC Web Framework – “Hello World”

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

program DelphiMVCWebFramework;

{$APPTYPE CONSOLE}

uses
  System.SysUtils,
  MVCEngine in 'MVCEngine.pas',
  BaseController in 'BaseController.pas';

var
  mvc: TWebMVCEngine;
begin
  mvc := TWebMVCEngine.Create;
  mvc.AddRoute('/', procedure(Context: TWebContext)
    begin
      Context.Write('Hello World');
    end).Start(8080);
  ReadLn;
  mvc.Free;
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? 🙂

    UPDATE:

    The project is open source and you can fint it here

    https://code.google.com/p/delphimvcframework/

9 thoughts on “Delphi MVC Web Framework – “Hello World”

  1. very interesting
    would it be free and opensource?

    PS. WordPress 3.3.1 is available! Please notify the site administrator.

  2. very interesting
    would it be free and opensource?

    PS. WordPress 3.3.1 is available! Please notify the site administrator.

  3. very, very, very, very, interesting

    Show us more!!!

    Will it folow Convention over Configuration principles,
    like Rails, Yii, and other great MVC Frameworks do?

  4. very, very, very, very, interesting

    Show us more!!!

    Will it folow Convention over Configuration principles,
    like Rails, Yii, and other great MVC Frameworks do?

  5. This project includes a rest client api to consume the service? I have searched a client-side API to consume java REST services but I have not found good solutions.

  6. This project includes a rest client api to consume the service? I have searched a client-side API to consume java REST services but I have not found good solutions.

Comments are closed.