Recent

Author Topic: Brook 1.0 - A new framework for web was born  (Read 153880 times)

Silvio Clécio

  • Guest
Brook 1.0 - A new framework for web was born
« on: December 15, 2012, 04:27:03 am »
Hello all,

More than 15,000 lines of source code, more than 90 test cases, more than one year of work. Today, a new framework for web development was born. It's name is Brook and its nice features are available for you.
I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the CustCGI and the EazyCGI developers. I got inspiration in all of them and and still in Rails and Slim Framework.

Special thanks, I drive to João Moraes, who gave me valuable advices to decoupling the code. Thanks for Luciano de Souza, responsible for the documentation and the name of methods and properties. Thanks also for Marcos Douglas, the author of Greyhound, project  wich started as an inspiration and finished as a valuable partner in the new web ways.

Finally, I thank for the Free Pascal and Lazarus community for the precious tips and quick helps.

I was thinking about what to write in the launching e-mail. But, there's no much to say. The site of Brook and its documentation will speak for me. So I present the Brook's house:

http://brookframework.org

Your visit will be appreciated.

Their, you find the documentation, you find examples running online and you find also the hopeness this work will be very useful to the Free Pascal and Lazarus commoties.

On Sunday, I am going to start my vacations. Thanks God. The work is ready and the conscious is quiet.

Enjoy!

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Re: Brook 1.0 - A new framework for web was born
« Reply #1 on: December 15, 2012, 05:05:07 am »
Thanks Sir
Excellent work and have fun ...
 
CodeTyphon Architect and Programmer

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Brook 1.0 - A new framework for web was born
« Reply #2 on: December 15, 2012, 06:20:46 am »
Exploring 8)
I hope it's something "different" from existing frameworks, including mine (which is not ready enough to go public :-[). If it can fulfill my requirements, I might migrate my existing web apps to it.

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: Brook 1.0 - A new framework for web was born
« Reply #3 on: December 15, 2012, 06:50:42 am »
Quote
http://brookframework.org

The design is nice, but the text really needs some proofreading.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Brook 1.0 - A new framework for web was born
« Reply #4 on: December 15, 2012, 10:49:00 am »
Quote
http://brookframework.org

The design is nice, but the text really needs some proofreading.
Agreed that the texts could use some work; I'd be happy to help with fixing English texts...

Edit: browsed the site some. Impressively complete: documentation, samples etc, well laid out. With a site like this, the actual framework must be marvelous ;)

Edit2: however, this:
Quote
Copyright (C) 2013 Silvio Clecio.
is... impossible ;)
« Last Edit: December 15, 2012, 10:55:12 am by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BlueIcaro

  • Hero Member
  • *****
  • Posts: 793
    • Blog personal
Re: Brook 1.0 - A new framework for web was born
« Reply #5 on: December 15, 2012, 12:53:06 pm »
Quote
Copyright (C) 2013 Silvio Clecio.
May be can be change by:
Quote
2013 Author:Silvio Clecio.
/BlueIcaro

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Brook 1.0 - A new framework for web was born
« Reply #6 on: December 15, 2012, 12:56:01 pm »
@BlueIcaro, well if he writes a book called 2013, no problem.
I'd change it to a more conservative:
Quote
Copyright (C) 2012 Silvio Clecio.
though...

Edit: Yes, Silvio, that's how it goes: you spend a year on building something marvelous and then people start arguing about the words on the documentation/site. Sorry... guess it's human nature ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Fabio Souza

  • New Member
  • *
  • Posts: 12
Re: Brook 1.0 - A new framework for web was born
« Reply #7 on: December 15, 2012, 01:23:27 pm »
The Brook is amazing! I think to use in place of Delphi DataSnap / WebBroker.

Congratulations on doing such a great job on developing this new framework.

[] 'S
Fabio Souza

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: Brook 1.0 - A new framework for web was born
« Reply #8 on: December 15, 2012, 01:33:48 pm »
After quick browsing of source and docs, I have a few additional questions:
1) Is there some kind of template engine available?
2) Is there a provision to use something more efficient than CGI -- FastCGI or, even better, built-in web server?
If the above two questions have positive answers,
I might really consider using this framework for one of my upcoming web projects.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Brook 1.0 - A new framework for web was born
« Reply #9 on: December 15, 2012, 02:20:21 pm »
Quote
http://brookframework.org

The design is nice, but the text really needs some proofreading.
Attached is a patch for the main page/readme.

Don't know where the text for the other pages is.

Thanks.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Brook 1.0 - A new framework for web was born
« Reply #10 on: December 15, 2012, 03:31:09 pm »
Suggestion for the website (not the framework): split the documentation menu into two (or more) submenu, namely tutorial and api reference. Commonly when people click "documentation", they're expecting a "how to" or "tutorial" instead of "api reference". It seems you'll need to open the "how to" part as a wiki in order to reduce the effort you'll need to spend.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Brook 1.0 - A new framework for web was born
« Reply #11 on: December 15, 2012, 03:34:26 pm »
well done @silvio, congratulations.
But I got a package install problem, here are the compile errors.

/home/indiana/lazarus-libs/brookframework/brokers/brookfclcgibroker.pas(57,15) Error: There is no method in an ancestor class to be overridden: "TBrookCGIRequest.DeleteTempUploadedFiles;"
/home/indiana/lazarus-libs/brookframework/brokers/brookfclcgibroker.pas(58,14) Error: There is no method in an ancestor class to be overridden: "TBrookCGIRequest.GetTempUploadFileName(const AnsiString,const AnsiString,Int64):AnsiString;"
/home/indiana/lazarus-libs/brookframework/brokers/brookfclcgibroker.pas(60,14) Error: There is no method in an ancestor class to be overridden: "TBrookCGIRequest.RequestUploadDir:AnsiString;"
/home/indiana/lazarus-libs/brookframework/brokers/brookfclcgibroker.pas(62,15) Error: There is no method in an ancestor class to be overridden: "TBrookCGIRequest.HandleUnknownEncoding(const AnsiString,TStream);"
/home/indiana/lazarus-libs/brookframework/brokers/brookfclcgibroker.pas(85,1) Fatal: There were 4 errors compiling module, stopping

FPC 2.6.0-1
Lazarus SVN 1.1 - 39501
Linux Debian - Gnome 2.30.2

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Brook 1.0 - A new framework for web was born
« Reply #12 on: December 15, 2012, 04:49:30 pm »
@Silvio, congratulations! Was a long way, no?  ;)

Exploring 8)
I hope it's something "different" from existing frameworks, including mine (which is not ready enough to go public :-[). If it can fulfill my requirements, I might migrate my existing web apps to it.
The Brook uses Greyhound so, you already know this part!  ;)

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #13 on: December 15, 2012, 10:08:40 pm »
Thank you Stefanos! :D

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #14 on: December 15, 2012, 10:12:34 pm »
Leledumbo,

I'd be flattered if you can test it. :)

In brook we have a router, fast and very helpful for RESTful frameworks.

Please follow the project on Github, if you prefer, you can take a fork and we apply the pull requests.

Thank you! :D

 

TinyPortal © 2005-2018