Recent

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

itmitica

  • Jr. Member
  • **
  • Posts: 85
Re: Brook 1.0 - A new framework for web was born
« Reply #75 on: March 07, 2013, 08:52:15 pm »
 Issue #18

...and thank you! :)

--
Mitică

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #76 on: March 07, 2013, 08:55:03 pm »
Thank you again! :)

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 #77 on: March 10, 2013, 12:01:23 pm »
FYI:

In the development version of my fpcup Lazarus/fpc downloader/installer/updater, I added git repositories for
  • tiopf framework
  • lazpackager (addin to create Debian .deb packages)
  • Brook Framework
  • ljgridutils (JSON saving/loading from grid)
  • Greyhound ORM

The tiopf one is a bit weird as you need to switch branches to do anything useful. Haven't implemented support for that yet.

The repos are not enabled by default; you can either edit fpcup.ini or run e.g. fpcup --only=lazpackager

Comments/suggestions welcome as always,

More info about fpcup:
http://lazarus.freepascal.org/index.php/topic,15919.0.html
https://bitbucket.org/reiniero/fpcup
thanks,
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

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #78 on: March 11, 2013, 02:46:23 pm »
Thank you very much for adding Brook. ;)

I'll test fpcup soon. Sounds a very interesting project. :)

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Brook 1.0 - A new framework for web was born
« Reply #79 on: March 11, 2013, 06:50:23 pm »
FYI:

In the development version of my fpcup Lazarus/fpc downloader/installer/updater, I added git repositories for
  • tiopf framework
  • lazpackager (addin to create Debian .deb packages)
  • Brook Framework
  • ljgridutils (JSON saving/loading from grid)
  • Greyhound ORM
[...]
Thanks for adding the Greyhound.
Please, see the sources again because I moved the package to another directory today!

Best regards.
« Last Edit: March 11, 2013, 06:52:46 pm by md »

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 #80 on: March 12, 2013, 08:03:39 am »
Thanks Marcos, but where did you move it?

https://github.com/mdbs99/Greyhound.git seems to be up with latest update about 11 hours ago.
Which URL should I use instead?
Suggestion: disable previous repo.
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

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Brook 1.0 - A new framework for web was born
« Reply #81 on: March 12, 2013, 01:16:19 pm »
No!  :o
I moved only the package from src/ to packages/   :D

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Brook 1.0 - A new framework for web was born
« Reply #82 on: March 26, 2013, 12:47:06 pm »
Opa Silvio.  ;)

Has Brook a forum editor-designer ?
« Last Edit: March 26, 2013, 12:51:06 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #83 on: April 01, 2013, 12:26:08 am »

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Brook 1.0 - A new framework for web was born
« Reply #84 on: April 01, 2013, 07:14:17 pm »
There is a recent discussion about a possible re-implementation of the Lazarus website at http://www.lazarus.freepascal.org/index.php/topic,20426. You might want to join there as Brook could be useful resource for these efforts.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #85 on: April 01, 2013, 07:29:08 pm »
Done. Thank you very much friend! :)

Nebula

  • Jr. Member
  • **
  • Posts: 88
Re: Brook 1.0 - A new framework for web was born
« Reply #86 on: April 05, 2013, 01:31:11 pm »
Just a comment and suggestion from someone quite new to web apps and frameworks...

I looked at http://brookframework.org/get-started.html and was put off by the /cgi-bin/ url, as - at that point - my basic understanding of these things had led me to believe that crusty old CGI was a primitive thing that reloaded every time a request was made  :D

After an hour or so of research into why basic CGI is obsolete, etc, I eventually came back to the Brook website and then found that you do, after all, use the more modern techniques of a persistant process (i.e. FastCGI as in http://forum.lazarus.freepascal.org/index.php/topic,13312.0.html ) and more acceptable URLs with 'routing', etc.

Make of that what you will. Perhaps it might be worth noting on the get-started page that Brook does use up to date methods... "but here's a very basic old cgi example...". Just to avoid confusion from newbs like me!

Cheers, Good luck.
« Last Edit: April 05, 2013, 01:33:29 pm by Nebula »
Newbie testing Lazarus v1.0 - very impressed
Win 7 at work, XP and Linux Mint at home.
It all started with a ZX80 on a b/w telly........
Code: [Select]
Uses Smiles, GoodHumour, WantsToHelp;
{ never liked C - curly brackets are for comments! }

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Brook 1.0 - A new framework for web was born
« Reply #87 on: April 05, 2013, 06:53:43 pm »
Just tried embedded webserver + daemon combo, SUPERB! In production, it could run as a daemon without cluttering taskbar. In development, it can easily be debugged from IDE. All just with a single ifdef to determine whether to use the daemon broker or not.

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #88 on: April 05, 2013, 08:03:22 pm »
Yes, CGI is old, but its safe and used even today by sites like PayPal, HostMonster, HP, RedHat etc., please see some links:

https://www.paypal.com/cgi-bin/webscr?cmd=_login-submit

https://my.hostmonster.com/cgi-bin/cplogin

With FastCGI, I perform 2800 requests per second. Using PHP I perform only 2200. FastCGI is fast, and IMHO speed and security is more important than modernity. :)

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Brook 1.0 - A new framework for web was born
« Reply #89 on: April 19, 2013, 04:48:11 pm »
Does brook have a way to handle sessions?
I am currently using python and CherryPy and it has the ability to create a before dispatch event where you can
check if the session is expired or if the user has logged off and then redirect them to a session expired page.

I didn't see a demo on the brook web page about how to handle storing session data between requests.

Also is this thread where I should be asking questions about the Brook Framework?

Thanks,

Snorkel
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

 

TinyPortal © 2005-2018