FileSystem
FileSystem Pharo Moose
Free Software
Moose
Pharo
Pike
REST
RosettaCode
VR
Zinc-REST
angular.js
beijinglug
code-in
collaboration
community-calendar
email
ember.js
fish
interview
life-after-death
n-reduce
open hardware
open-party
shell
smalltalk
vim

Using the FileSystem class in Pharo Smalltalk
FileSystem | Pharo | code-in | smalltalk

I am learning how to build a website with a RESTful API in Pharo Smalltalk. This project started during Google Code-In as a set of tasks for students to work on. A handful of students were interested and picked up tasks to learn Pharo.

Now that Google Code-In is over, the students are interested to continue learning and so i am running workshops with them, where we explore the tools needed to build this server.

The first workshop was held last week on sunday the 25th, and the next one will be on saturday the 31st of Jnauary. from 2pm to 6pm chinese time, that is 7am to 11am CET or 6am to 10am UTC. We will meet on freenode irc in the channels #fossasia and #pharo.

A part of website consists of static files. To simplify development and deployment, we want to serve those files from the smalltalk image. One way to hold several documents inside an image is using a memory FileSystem. The FileSystem class is described in the book "Deep into Pharo" in chapter 3.

In the first workshop we try to use the FileSystem class in a sample application. We use the tutorial "Building and deploying your first web app with Pharo" as a starting point, and adapt the code to store images in a FileSystem object.

If you want to follow along, please first complete the tutorial and then watch the screencast below to continue:

In the next session we will convert the rest of the website to using our FileSystem object.

Author : mbaehr   |   size : 1976Bytes   |   Publish Date : Jan/29/15/01:51   |   to Top