Changeset 3380 for sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/getting_started.html
- Timestamp:
- 03/02/10 06:00:29 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/getting_started.html
r3379 r3380 48 48 <div class="section" id="module-1-getting-started"> 49 49 <h1>Module 1 - Getting Started<a class="headerlink" href="#module-1-getting-started" title="Permalink to this headline">¶</a></h1> 50 <p>Start by creating a folder named <tt class="docutils literal"><span class="pre"> MapFish</span></tt> in the <tt class="docutils literal"><span class="pre">C:\</span></tt> folder, this will50 <p>Start by creating a folder named <tt class="docutils literal"><span class="pre">mapfish</span></tt> in the <tt class="docutils literal"><span class="pre">/home/live</span></tt> folder, this will 51 51 be your working folder for this workshop.</p> 52 52 <div class="section" id="getting-workshop-material"> 53 53 <h2>Getting workshop material<a class="headerlink" href="#getting-workshop-material" title="Permalink to this headline">¶</a></h2> 54 54 <p>Get the Workshop material by checking out 55 <a class="reference external" href="http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop">http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop</a> with 56 Turtoise SVN. For this open the explorer, go into <tt class="docutils literal"><span class="pre">C:\MapFish</span></tt>, right-click 57 in the explorer window, choose <tt class="docutils literal"><span class="pre">SVN</span> <span class="pre">Checkout...</span></tt>, enter the above URL, check 58 that the <cite>Checkout directory</cite> is <tt class="docutils literal"><span class="pre">C:\MapFish\mapfish_workshop</span></tt>, and click 59 <tt class="docutils literal"><span class="pre">OK</span></tt>.</p> 60 <p>Export the <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt> folder to your Apache document root, for 55 <a class="reference external" href="http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/">http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/</a> with svn:</p> 56 <div class="highlight-python"><pre>svn co http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/</pre> 57 </div> 58 <p>Export the <cite>mapfish_workshop_fossgis2010`</cite> folder to your Apache document root, for 61 59 example by copying it in Apache’s <tt class="docutils literal"><span class="pre">htdocs</span></tt> directory. You should be able to 62 load <a class="reference external" href="http://localhost/mapfish_workshop /printing">http://localhost/mapfish_workshop/printing</a> in your web browser.</p>60 load <a class="reference external" href="http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html">http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html</a> in your web browser.</p> 63 61 </div> 64 62 <div class="section" id="installing-mapfish"> 65 63 <h2>Installing MapFish<a class="headerlink" href="#installing-mapfish" title="Permalink to this headline">¶</a></h2> 66 <p>To install MapFish, first make sure you’ve installed “Python for Windows extensions”. 67 If not, you can get it here: <a class="reference external" href="http://sourceforge.net/projects/pywin32/">http://sourceforge.net/projects/pywin32/</a></p> 68 <p>Open a terminal command and follow these steps:</p> 69 <div class="highlight-python"><pre>C:\>cd C:\MapFish 70 C:\MapFish>C:\Python25\python.exe mapfish_workshop\software\go-mapfish-framework-1.2.py env</pre> 64 <p>To install MapFish, open a terminal and first install the requirements:</p> 65 <div class="highlight-python"><pre>sudo apt-get install python2.5 python2.5-dev 66 sudo apt-get install libgeos-3.0.0 postgresql postgis</pre> 67 </div> 68 <p>Then download the MapFish installer located in <a class="reference external" href="http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py">http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py</a>:</p> 69 <div class="highlight-python"><pre>cd mapfish 70 curl http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py > go-mapfish-framework-1.2.py</pre> 71 </div> 72 <p>And follow this step:</p> 73 <div class="highlight-python"><pre>python25 go-mapfish-framework-1.2.py --no-site-packages env</pre> 71 74 </div> 72 75 <p>This command creates a virtual Python environment named <tt class="docutils literal"><span class="pre">env</span></tt> and installs 73 76 MapFish and its dependencies into it.</p> 74 77 <p>Now activate the virtual environment with:</p> 75 <div class="highlight-python"><pre> C:\MapFish>env\Scripts\activate.bat</pre>78 <div class="highlight-python"><pre>source env/bin/activate</pre> 76 79 </div> 77 80 <p>You command prompt should now look like this:</p> 78 <div class="highlight-python"><pre> <env> C:\MapFish></pre>81 <div class="highlight-python"><pre>(env) $</pre> 79 82 </div> 80 83 <p>To check that MapFish is correctly installed, enter:</p> 81 <div class="highlight-python"><pre> <env> C:\MapFish>paster create --list-templates</pre>84 <div class="highlight-python"><pre>(env) $ paster create --list-templates</pre> 82 85 </div> 83 86 <p>and check that the output is:</p> … … 93 96 <div class="section" id="installing-firefox-extensions"> 94 97 <h2>Installing FireFox extensions<a class="headerlink" href="#installing-firefox-extensions" title="Permalink to this headline">¶</a></h2> 95 <p>It is recommended that you use FireFox and install <a class="reference external" href="http://getfirebug.com/">Firebug</a> <a class="footnote-reference" href="#id2" id="id1">[1]</a>. Firebug is an add-on for Firefoxthat allows96 you to debug JavaScript in any web page. Firebug requires Fire foxand cannot be98 <p>It is recommended that you use FireFox/Iceweasel and install <a class="reference external" href="http://getfirebug.com/">Firebug</a> <a class="footnote-reference" href="#id2" id="id1">[1]</a> (Use version 1.4.5 for FireFox/Iceweasel 3.0). Firebug is an add-on for FireFox/Iceweasel that allows 99 you to debug JavaScript in any web page. Firebug requires FireFox/Iceweasel and cannot be 97 100 used with any other web browser. Installing the <a class="reference external" href="https://addons.mozilla.org/en-US/firefox/addon/10869">JSONView</a> extension is also 98 101 recommented, it will be used for viewing JSON responses in FireFox.</p>
