SahanaEden:
Developer Environment
(Virtual Machine)
4 November 2010, Sahana Camp
Fran Boon
fran@sahanafoundation.org
Stack Overview
Server
Sahana Eden (S3)
Web2Py
Python
HTML
JavaScript
CSS
Client Browser
Eclipse Firebug
Install Developer Environment
Simplest way is to use the Virtual Machine:
•Python + Libraries
•Web2Py
•Sahana Eden
•Eclips...
Initial Configuration
Run Sahana:
•Launch Eclipse
•Run menu | Debug
•Launch Firefox
1st
-time Configuration:
•Edit models/...
Model-View-Controller
web2py/applications/eden/
•Models
– Define Tables in the Database
•Controllers
– Workflow, Logic
•Vi...
End
End
Upcoming SlideShare
Loading in …5
×

Sahana Eden : Developer Environment (VM) (SahanaCamp 1.2)

1,315 views
1,209 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,315
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • S3 is a codename for Sahana Eden
    Server & Client can be on the same machine
    Each part needs to be debugged separately: Eclipse works well for the Server-side Python, whilst Firebug is excellent for the generated HTML/CSS/JavaScript
    JavaScript libraries we use include jQuery & ExtJS
  • Virtual Machine Instructions:
    http://eden.sahanafoundation.org/wiki/InstallationGuidelinesVirtualMachine
    If you wish to run direct on your native host later, there are notes on the Wiki for installing a developer environment on Windows, Mac or Linux machines.
    Virtual Box installers for Windows & Mac are on the Flash drives:
    Windows: VirtualBox-3.2.10-66523-Win.exe
    Mac: VirtualBox-3.2.10-66523-OSX.dmg
    Linux: http://www.virtualbox.org/wiki/Linux_Downloads
    Import Virtual Applicance
    File menu | Import Appliance
    Choose (browse to Flash drive):
    Eden-Dev.ovf
  • Within the Virtual Machine, then normal way to run Sahana is to start the Eclipse Debugger.
    Firefox homepage is set to the Eden home: http://127.0.0.1:8000/eden
    Since this is a private Developer environment, we don’t need to worry too much about security or performance – so shouldn’t need to configure any other settings just yet.
    The first user to register gets admin rights.
  • Look around the filesystem in web2py/applications/eden folder
    Similar layout structure to other MVC frameworks, such as Ruby-on-Rails & Django
    Also have:
    Static
    no server-side processing
    Images
    CSS
    JavaScript
    Modules
    Python libraries
  • We will learn to code tomorrow…meanwhile we’ll look at using Bzr
  • Sahana Eden : Developer Environment (VM) (SahanaCamp 1.2)

    1. 1. SahanaEden: Developer Environment (Virtual Machine) 4 November 2010, Sahana Camp Fran Boon fran@sahanafoundation.org
    2. 2. Stack Overview Server Sahana Eden (S3) Web2Py Python HTML JavaScript CSS Client Browser Eclipse Firebug
    3. 3. Install Developer Environment Simplest way is to use the Virtual Machine: •Python + Libraries •Web2Py •Sahana Eden •Eclipse •Firefox (Firebug)
    4. 4. Initial Configuration Run Sahana: •Launch Eclipse •Run menu | Debug •Launch Firefox 1st -time Configuration: •Edit models/000_config.py FINISHED_EDITING_CONFIG_FILE = True •Refresh browser •Register yourself
    5. 5. Model-View-Controller web2py/applications/eden/ •Models – Define Tables in the Database •Controllers – Workflow, Logic •Views – HTML / JS Templates parsed server-side – JS functions then run client-side in browser
    6. 6. End
    7. 7. End

    ×