Changes between Version 233 and Version 234 of DeveloperGuidelines


Ignore:
Timestamp:
07/04/13 10:56:32 (12 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines

    v233 v234  
    5050* [wiki:DeveloperGuidelines/Internationalisation Internationalization]
    5151* [wiki:DeveloperGuidelines/Libraries Libraries]
     52 * [wiki:DeveloperGuidelines/SVG SVG] - One way of producing Charts
    5253* [wiki:DeveloperGuidelines/Menus Menus]
    5354* [wiki:DeveloperGuidelines/Messaging Messaging]
     55* [wiki:DeveloperGuidelines/Minify Minify] JS & CSS
     56* [wiki:DeveloperGuidelines/Mobile Mobile]
     57 * [wiki:DeveloperGuidelines/Mobile/Android Android]
    5458* [wiki:DeveloperGuidelines/Popup Popups]
    5559* [wiki:DeveloperGuidelines/PrePopulate PrePopulate]- initialising the database with lookup lists &/or demo data
    56 * [wiki:DeveloperGuidelines/SVG SVG] - One way of producing Charts
    5760* [wiki:DeveloperGuidelines/Templates Templates] for instance configuration
    5861 * [wiki:DeveloperGuidelines/Templates/CustomPages Custom Pages]
     
    6871* [wiki:DeveloperGuidelines/Logistics]
    6972* [wiki:DeveloperGuidelines/Organisations]
    70 * [wiki:DeveloperGuidelinesSurvey]
     73* [wiki:DeveloperGuidelines/Survey]
    7174* [wiki:DeveloperGuidelines/WebSetup]
    72 
    73 ==== Deployment ====
    74 Browsers default to only downloading 2 files from the same origin at a time, so many files is very slow on high latency links.
    75 
    76 We therefore consolidate into fewer, larger files when running in Production mode.
    77 
    78 Although, note that iPhone 3.x cannot cache files larger than 15kb and in iPhone 4 the limit is 25kb. And this is the size before gzipping.
    79 
    80 Since GIS is a specialised app which requires many files, it's JS is loaded separately when required.
    81 
    82 The build script is {{{static/scripts/tools/build.sahana.py}}}
    83 
    84 It needs to be run as a web2py script:
    85 {{{
    86 python web2py.py -S eden -M -R applications/eden/static/scripts/tools/build.sahana.py
    87 }}}
    88 
    89 There is also a convenience wrapper for Windows to run this: {{{static/scripts/tools/build.cmd}}}
    90 
    91 You must have an internet connection to run the build script unless you have a local version of the Compiler.
    92 
    93 Our build process is based on the one used by !OpenLayers
    94  * http://trac.openlayers.org/wiki/Profiles
    95 
    96 This uses Google's Closure compiler to compress the JS. This is done using their web service, however for !OpenLayers itself we need to download the jar file & place in the tools folder since this is over 1Mb:
    97  * http://closure-compiler.googlecode.com/files/compiler-latest.zip
    98 
    99 !ToDo: Investigate using other options instead:
    100  * http://developer.yahoo.com/yui/compressor/
    101  * http://www.crowproductions.de/repos/main/public/packer/jspacker.py
    102 
    103 !ToDo: Download/execute scripts asynchronously:
    104  * Projects/Advanced/Optimisation
    105 
    106 == Mobile ==
    107 * [wiki:DeveloperGuidelines/Mobile/Android Android] - Android clients
    10875
    10976== Other Resources ==