Hi,
I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. http://zn.stfx.eu/zn/build-and-deploy-1st-webapp Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. Enjoy, Sven PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. -- Sven Van Caekenberghe Proudly supporting Pharo http://pharo.org http://association.pharo.org http://consortium.pharo.org |
very nice!
On 2013-07-15, at 13:12, Sven Van Caekenberghe <[hidden email]> wrote: > Hi, > > I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". > > By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. > > http://zn.stfx.eu/zn/build-and-deploy-1st-webapp > > Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. > > Enjoy, > > Sven > > PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. > > -- > Sven Van Caekenberghe > Proudly supporting Pharo > http://pharo.org > http://association.pharo.org > http://consortium.pharo.org > > |
In reply to this post by Sven Van Caekenberghe-2
Hi Sven,
thank you a LOT. To be honest I was thinking about improving Pharo's glory around the web and a decent tutorial was the first step. I'll go through it today-tomorow and may have more feedback, but for now maybe we can cooperate on the idea of making a development with Pharo popular. Cheers, Uko On 15 лип. 2013, at 14:12, Sven Van Caekenberghe <[hidden email]> wrote: > Hi, > > I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". > > By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. > > http://zn.stfx.eu/zn/build-and-deploy-1st-webapp > > Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. > > Enjoy, > > Sven > > PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. > > -- > Sven Van Caekenberghe > Proudly supporting Pharo > http://pharo.org > http://association.pharo.org > http://consortium.pharo.org > > |
In reply to this post by Camillo Bruni-3
On 15 Jul 2013, at 13:15, Camillo Bruni <[hidden email]> wrote: > very nice! Thanks, someone already put it on http://www.reddit.com/r/programming/comments/1ic883/building_and_deploying_your_first_web_app_with/ but needs comments/votes ;-) > On 2013-07-15, at 13:12, Sven Van Caekenberghe <[hidden email]> wrote: >> Hi, >> >> I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". >> >> By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. >> >> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp >> >> Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. >> >> Enjoy, >> >> Sven >> >> PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. >> >> -- >> Sven Van Caekenberghe >> Proudly supporting Pharo >> http://pharo.org >> http://association.pharo.org >> http://consortium.pharo.org >> >> > > |
In reply to this post by Uko2
Hi Yuriy,
On 15 Jul 2013, at 13:25, Yuriy Tymchuk <[hidden email]> wrote: > Hi Sven, > > thank you a LOT. To be honest I was thinking about improving Pharo's glory around the web and a decent tutorial was the first step. I'll go through it today-tomorow and may have more feedback, but for now maybe we can cooperate on the idea of making a development with Pharo popular. It would be very cool if you would also write some tutorial or blog post. There can never be enough, and fresh, alternative views are important as well. I think the whole idea of Pharo is to make it better and more popular, together. Sven > Cheers, > Uko > > > On 15 лип. 2013, at 14:12, Sven Van Caekenberghe <[hidden email]> wrote: > >> Hi, >> >> I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". >> >> By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. >> >> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp >> >> Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. >> >> Enjoy, >> >> Sven >> >> PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. >> >> -- >> Sven Van Caekenberghe >> Proudly supporting Pharo >> http://pharo.org >> http://association.pharo.org >> http://consortium.pharo.org >> >> > > |
Hi Sven,
yes, guides is nice, and I'll try to make something with Zinc + Amber. But my main idea is to create something like a Stack of technologies that is easy to use. Like Rails. Uko On 15 лип. 2013, at 18:18, Sven Van Caekenberghe <[hidden email]> wrote: > Hi Yuriy, > > On 15 Jul 2013, at 13:25, Yuriy Tymchuk <[hidden email]> wrote: > >> Hi Sven, >> >> thank you a LOT. To be honest I was thinking about improving Pharo's glory around the web and a decent tutorial was the first step. I'll go through it today-tomorow and may have more feedback, but for now maybe we can cooperate on the idea of making a development with Pharo popular. > > It would be very cool if you would also write some tutorial or blog post. There can never be enough, and fresh, alternative views are important as well. > > I think the whole idea of Pharo is to make it better and more popular, together. > > Sven > >> Cheers, >> Uko >> >> >> On 15 лип. 2013, at 14:12, Sven Van Caekenberghe <[hidden email]> wrote: >> >>> Hi, >>> >>> I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". >>> >>> By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. >>> >>> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp >>> >>> Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. >>> >>> Enjoy, >>> >>> Sven >>> >>> PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. >>> >>> -- >>> Sven Van Caekenberghe >>> Proudly supporting Pharo >>> http://pharo.org >>> http://association.pharo.org >>> http://consortium.pharo.org >>> >>> >> >> > > |
In reply to this post by Sven Van Caekenberghe-2
since you gave listing at the end of page,
i wonder, how much PHP (yes! :) code it would take to implement same app? :) of course , PHP is not really fair comparison, since it doesn't implements full HTTP stack, nor it deals with HTTP requests directly as Zinc does, and runs on top of web server which does that for it. On 15 July 2013 13:12, Sven Van Caekenberghe <[hidden email]> wrote: > Hi, > > I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". > > By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. > > http://zn.stfx.eu/zn/build-and-deploy-1st-webapp > > Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. > > Enjoy, > > Sven > > PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. > > -- > Sven Van Caekenberghe > Proudly supporting Pharo > http://pharo.org > http://association.pharo.org > http://consortium.pharo.org > > -- Best regards, Igor Stasenko. |
Igor,
On 15 Jul 2013, at 17:48, Igor Stasenko <[hidden email]> wrote: > since you gave listing at the end of page, > i wonder, how much PHP (yes! :) code it would take to implement same app? :) > > of course , PHP is not really fair comparison, since it doesn't > implements full HTTP stack, > nor it deals with HTTP requests directly as Zinc does, and runs on top > of web server which does that for it. I don't know enough about PHP to really comment, but do you mean it would be (much) shorter ? I wonder and would certainly like to see. Just don't forget to include the full upload validation and parsing logic, as well as the default image. All lines of all files count: code, html, css, js, … Anyway, the tutorial was not meant as a 'see how few lines we need'. I once did that in Reddit.st - In 10 elegant Smalltalk classes - Implementing a Reddit style web application in Smalltalk - Using Seaside, Glorp and PostgreSQL, but it is no longer available online, I should revive it. Sven > On 15 July 2013 13:12, Sven Van Caekenberghe <[hidden email]> wrote: >> Hi, >> >> I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". >> >> By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. >> >> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp >> >> Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. >> >> Enjoy, >> >> Sven >> >> PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. >> >> -- >> Sven Van Caekenberghe >> Proudly supporting Pharo >> http://pharo.org >> http://association.pharo.org >> http://consortium.pharo.org >> >> > > > > -- > Best regards, > Igor Stasenko. > |
On 15 Jul 2013, at 18:41, Sven Van Caekenberghe <[hidden email]> wrote: > I should revive it. But it is still running live ;-) http://caretaker.wolf359.be:8080/reddit Sven |
This is really nice. I hope it will reach people who develop webapps in ruby/php/java or whatever. On Mon, Jul 15, 2013 at 6:42 PM, Sven Van Caekenberghe <[hidden email]> wrote:
|
In reply to this post by Sven Van Caekenberghe-2
On Jul 15, 2013, at 6:41 PM, Sven Van Caekenberghe <[hidden email]> wrote: > Igor, > > On 15 Jul 2013, at 17:48, Igor Stasenko <[hidden email]> wrote: > >> since you gave listing at the end of page, >> i wonder, how much PHP (yes! :) code it would take to implement same app? :) >> >> of course , PHP is not really fair comparison, since it doesn't >> implements full HTTP stack, >> nor it deals with HTTP requests directly as Zinc does, and runs on top >> of web server which does that for it. > > I don't know enough about PHP to really comment, but do you mean it would be (much) shorter ? I wonder and would certainly like to see. Just don't forget to include the full upload validation and parsing logic, as well as the default image. All lines of all files count: code, html, css, js, … > > Anyway, the tutorial was not meant as a 'see how few lines we need'. I once did that in Reddit.st - In 10 elegant Smalltalk classes - Implementing a Reddit style web application in Smalltalk - Using Seaside, Glorp and PostgreSQL, but it is no longer available online, I should revive it. Yes and we turn it into a chapter :) > > Sven > >> On 15 July 2013 13:12, Sven Van Caekenberghe <[hidden email]> wrote: >>> Hi, >>> >>> I wrote a new tutorial, "Building and deploying your first web app with Pharo - Understanding HTTP fundamentals through Zinc HTTP Components". >>> >>> By chronologically following the development process, you will see a small web app growing from something trivial to the final result. Finally, we will save our source code in a repository and deploy for real in the cloud. >>> >>> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp >>> >>> Pharo 2.0/3.0 features such as Nautilus, SmalltalkHub, Metacello Configurations, Zeroconf Scripts and of course Zinc HTTP Components are used while highlighting traditional strengths such as incremental, live & interactive development in a rich environment. >>> >>> Enjoy, >>> >>> Sven >>> >>> PS: Feedback is welcome, the source document lives here https://github.com/svenvc/zinc/blob/master/build-and-deploy-1st-webapp/build-deploy-1st-webapp.md - pull requests appreciated. >>> >>> -- >>> Sven Van Caekenberghe >>> Proudly supporting Pharo >>> http://pharo.org >>> http://association.pharo.org >>> http://consortium.pharo.org >>> >>> >> >> >> >> -- >> Best regards, >> Igor Stasenko. >> > > |
Hi Sven
I get an error with the command ./pharo Pharo.image eval --no-quit 'ZnServer startDefaultOn: 8080' Syntax Error on line 1: 'Nothing more expected' 1: --No-quit ZnServer startDefaultOn: 8080 what could this be pls thanks & regards Sanjay
cheers,
Sanjay |
Hi Sanjay,
On 01 Aug 2013, at 17:58, sminni <[hidden email]> wrote: > Hi Sven > > I get an error with the command > ./pharo Pharo.image eval --no-quit 'ZnServer startDefaultOn: 8080' > Syntax Error on line 1: 'Nothing more expected' > 1: --No-quit ZnServer startDefaultOn: 8080 > > > what could this be pls I think you are using an image where the --no-quit option for the eval command line handler is not (yet) implemented. You should try without the --no-quit option. But the image will probably quit after starting the server. You can keep the main thread running with a little trick, like this: ./pharo Pharo.image eval 'ZnServer startDefaultOn: 8080. [ 1 hour asDelay wait ] repeat' HTH, Sven > thanks & > regards > Sanjay > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/DOC-Building-and-deploying-your-first-web-app-with-Pharo-tp4698728p4701855.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > |
Free forum by Nabble | Edit this page |