Your SlideShare is downloading. ×
Sahana Eden : Developer Environment (VM) (SahanaCamp 1.2)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

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

1,136

Published on

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

No Downloads
Views
Total Views
1,136
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
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
  • Transcript

    • 1. SahanaEden: Developer Environment (Virtual Machine) 4 November 2010, Sahana Camp Fran Boon fran@sahanafoundation.org
    • 2. Stack Overview Server Sahana Eden (S3) Web2Py Python HTML JavaScript CSS Client Browser Eclipse Firebug
    • 3. Install Developer Environment Simplest way is to use the Virtual Machine: •Python + Libraries •Web2Py •Sahana Eden •Eclipse •Firefox (Firebug)
    • 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. 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. End
    • 7. End

    ×