- Timestamp:
- 03/02/10 06:00:29 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/getting_started.txt
r3378 r3380 2 2 ========================== 3 3 4 Start by creating a folder named `` MapFish`` in the ``C:\`` folder, this will4 Start by creating a folder named ``mapfish`` in the ``/home/live`` folder, this will 5 5 be your working folder for this workshop. 6 6 … … 9 9 10 10 Get the Workshop material by checking out 11 http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop with 12 Turtoise SVN. For this open the explorer, go into ``C:\MapFish``, right-click 13 in the explorer window, choose ``SVN Checkout...``, enter the above URL, check 14 that the `Checkout directory` is ``C:\MapFish\mapfish_workshop``, and click 15 ``OK``. 11 http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/ with svn:: 16 12 17 Export the ``mapfish_workshop`` folder to your Apache document root, for 13 svn co http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/ 14 15 Export the `mapfish_workshop_fossgis2010`` folder to your Apache document root, for 18 16 example by copying it in Apache's ``htdocs`` directory. You should be able to 19 load http://localhost/mapfish_workshop /printingin your web browser.17 load http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html in your web browser. 20 18 21 19 Installing MapFish 22 20 ------------------ 23 21 24 To install MapFish, first make sure you've installed "Python for Windows extensions". 25 If not, you can get it here: http://sourceforge.net/projects/pywin32/ 22 To install MapFish, open a terminal and first install the requirements:: 26 23 27 Open a terminal command and follow these steps:: 24 sudo apt-get install python2.5 python2.5-dev 25 sudo apt-get install libgeos-3.0.0 postgresql postgis 28 26 29 C:\>cd C:\MapFish 30 C:\MapFish>C:\Python25\python.exe mapfish_workshop\software\go-mapfish-framework-1.2.py env 27 Then download the MapFish installer located in http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py:: 28 29 cd mapfish 30 curl http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py > go-mapfish-framework-1.2.py 31 32 And follow this step:: 33 34 python25 go-mapfish-framework-1.2.py --no-site-packages env 31 35 32 36 This command creates a virtual Python environment named ``env`` and installs … … 35 39 Now activate the virtual environment with:: 36 40 37 C:\MapFish>env\Scripts\activate.bat41 source env/bin/activate 38 42 39 43 You command prompt should now look like this:: 40 44 41 <env> C:\MapFish>45 (env) $ 42 46 43 47 To check that MapFish is correctly installed, enter:: 44 48 45 <env> C:\MapFish>paster create --list-templates49 (env) $ paster create --list-templates 46 50 47 51 and check that the output is:: … … 58 62 ----------------------------- 59 63 60 It is recommended that you use FireFox and install `Firebug61 <http://getfirebug.com/>`_ [#]_ . Firebug is an add-on for Firefoxthat allows62 you to debug JavaScript in any web page. Firebug requires Fire foxand cannot be64 It is recommended that you use FireFox/Iceweasel and install `Firebug 65 <http://getfirebug.com/>`_ [#]_ (Use version 1.4.5 for FireFox/Iceweasel 3.0). Firebug is an add-on for FireFox/Iceweasel that allows 66 you to debug JavaScript in any web page. Firebug requires FireFox/Iceweasel and cannot be 63 67 used with any other web browser. Installing the `JSONView 64 68 <https://addons.mozilla.org/en-US/firefox/addon/10869>`_ extension is also
