Recent

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

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Brook 1.0 - A new framework for web was born
« Reply #30 on: December 16, 2012, 08:41:34 am »

Thanks @silvio for the zip file but I compiled it from the fpc svn, and everything is just fine under Mac environment.
I had just declared the missing file so that there would be added to the next svn fpc trunk.
Regards.

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #31 on: December 16, 2012, 02:04:06 pm »
IndianaJones, so, the Brook compiled fine on your MAC? I'm curious. :)

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Brook 1.0 - A new framework for web was born
« Reply #32 on: December 17, 2012, 05:15:19 pm »
I have not looked at this yet, but does it support automatic sessions and the ability
to redirect to a session expired page before any dispatching is done if the session has expired?

I currently use python and the http://www.cherrypy.org/ framework, which can do all of that.

I really am interested in using FPC/Lazarus to rewrite my cherrypy app.  Only reason I went to cherrypy in the first place years ago was because stupid borland abandoned Kylix, now that I am moving all my desktop dev to Lazarus, not reason not to switch back to a pascal based solution.
***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

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #33 on: December 17, 2012, 08:56:53 pm »
snorkel, yes, Brook supports it! :)

You can see it here:

https://github.com/silvioprog/brookframework/blob/master/demos/others/chat/src/auth.pas

and the online demo here:

http://brookframework.org/demos/others/chat/cgi1.fbf

So, use session with Brook is very very easy.

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #34 on: January 01, 2013, 09:05:58 pm »
Hello guys,

Please see a nice post about Brook framework here:

http://pascalgeek.blogspot.com.br/2012/12/brook-framework-new-web-application.html

Thank you and happy new year! :)

belajarpascal

  • Newbie
  • Posts: 5
Re: Brook 1.0 - A new framework for web was born
« Reply #35 on: January 13, 2013, 12:20:37 pm »
im newbie on lazarus ide. im interesting to try brook. i have fresh installed lazarus svn win32. i install to brookex.lpk. compile process is done but brook not installed yet. can anyone help me? thanks

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #36 on: January 13, 2013, 01:25:54 pm »
Hello belajarpascal, welcome to the FPC-Lazarus!

Brook don't have components installed in IDE. Brook installs some wizards for easy code creating.

Please see the get started page:

http://brookframework.org/get-started.html

Good luck! :)

Silvio Clécio.

belajarpascal

  • Newbie
  • Posts: 5
Re: Brook 1.0 - A new framework for web was born
« Reply #37 on: January 13, 2013, 11:25:44 pm »
silvioprog: i mean that the wizard not installed yet. i try to follow 'get started' steps but i cant find 2 new entries wizard like the screenshot on that page. if i miss something? if i have to install fpweb/fclweb on my fresh lazarus? thank to your help.

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #38 on: January 14, 2013, 03:11:36 am »
I don't know what is happening. Try installing a current copy of Lazarus and Free Pascal in a virtual machine. If everything works there, it will be easier for you to find out what is happening in your environment.

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #39 on: January 14, 2013, 03:13:37 am »
belajarpascal, what your environment? (operating system, Lazarus and Free Pascal version etc.)

belajarpascal

  • Newbie
  • Posts: 5
Re: Brook 1.0 - A new framework for web was born
« Reply #40 on: January 14, 2013, 06:05:49 am »
-win xp home edition
-lazarus 1.1
-fpc 2.7.1

i just found message in the ide like this : makefile:29: *** You need the GNU utils package to use this Makefile. Stop. do you know is it the problem?
« Last Edit: January 14, 2013, 06:08:51 am by belajarpascal »

belajarpascal

  • Newbie
  • Posts: 5
Re: Brook 1.0 - A new framework for web was born
« Reply #41 on: January 14, 2013, 06:58:03 am »
im searching on the google, and the problem solved. i already have brook on my lazarus. thanks.

kodok.buncit

  • New Member
  • *
  • Posts: 35
Re: Brook 1.0 - A new framework for web was born
« Reply #42 on: January 14, 2013, 08:34:26 am »
hi silvio, is brookframework support for database session ?
kodok.buncit on github https://github.com/kodok-buncit/

Primary OS : Linux Ubuntu 12.04
fpc & laz      : always Trunk version

Silvio Clécio

  • Guest

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #44 on: January 14, 2013, 10:42:40 am »
Hello kodok.buncit,

Yes. You can do this easily with a TBrookDBAction.

Thank you! :)

 

TinyPortal © 2005-2018