Hi,
I took a few minutes to add a custom inspector tool ("Cupboard") to Teapot showing all the available teapots. The tool is accessible from the Tool menu right after loading "Teapot" and allows get an overview on running teapots. If you teapot has dynamic routes they will be shown as well. See screenshot attached. You can also start/stop a Teapot or add a new one serving static contents from a selected directory. Also catalog messages were added to the ConfigurationOfTeapot and the NeoJSON repo in the dependencies was fixed. Just get the lates stable version: Gofer it smalltalkhubUser: 'zeroflag' project: 'Teapot'; configuration; loadStable. or directly load from ConfigBrowser (Pharo 4) or CatalogBrowser/Spotter (Pharo 5) in a fresh image. If you want to quickly serve a (static) webpage from Pharo ========================================================== Create a web directory and HTML page - use "Tools" -> "File Browser" - create a directory "www" using "Add new directory", navigate to it - create a new file "index.html" using "Add new file", edit it and accept the changes Serve it from Pharo - load Teapot in a fresh image - open "Tools" -> "Teapot" - click on the server icon on the right to create a new static server - accept the default port 80 or enter a new one - select the directory Point your browser to http://localhost:80 If you want to quickly server (dynamic) content from Pharo: =========================================================== - use one of the examples on http://smalltalkhub.com/#!/~zeroflag/Teapot Note that the dynamic routes are shown in the new tool Tip: if you like use "Mustache" template library to mix HTML content (like Bootstrap templates, Material design templates or other with your Pharo server objects to serve pages) Have fun T. teapot.png (150K) Download Attachment |
You really are having fun :). Nice! Doru On Mon, Oct 12, 2015 at 3:37 PM, Torsten Bergmann <[hidden email]> wrote: Hi, |
In reply to this post by Torsten Bergmann
Very nice! Will come handy for me next monday (hackathon time).On Mon, Oct 12, 2015 at 3:37 PM, Torsten Bergmann <[hidden email]> wrote: Hi, |
In reply to this post by Torsten Bergmann
This is very nice thanks, and Cupboard is an awesome name.
|
In reply to this post by Torsten Bergmann
Look like very fun!
Cheers, Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
|
Free forum by Nabble | Edit this page |