CINXE.COM
Mason+Poet: Install
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Mason+Poet: Install</title> <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css"/> <link href="/static/css/style.css" rel="stylesheet" type="text/css"/> <link rel="stylesheet" href="/static/css/arta.css"> <script src="//http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script> <script src="/static/js/highlight.pack.js"></script> <script> $(function() { $('.perlcode,.masoncode').each(function(i, e) {hljs.highlightBlock(e)}); }); </script> </head> <body> <div id="header"> <span class="logo">Mason + Poet</span><br/> <span class="description">Powerful Perl-based web templating</span> </div> <ul id="menu"> <li><a href="/">Home</a></li> <li class="current"><a href="/install">Install</a></li> <li><a href="/documentation">Docs</a></li> <li><a href="/support">Support</a></li> <li><a href="/sites">Sites</a></li> <li><a href="/htmlmason">HTML::Mason</a></li> </ul> <div id="main"> <div class="inner"> <h2>Install</h2> <div class="section"> Install <a href="https://metacpan.org/module/App::cpanminus#INSTALLATION">cpanminus</a> (cpanm) if you haven't already. Then run <pre><code><div class="shellcode">> cpanm -S --notest Poet</div></code></pre>This will install Poet and its dependencies, including Mason.<br/> <ul> <li>Omit the "-S" if you don't have root, in which case cpanminus will install Poet and prereqs into ~/perl5.<br/> <li>Omit the "--notest" if you want to run all the installation tests (will take about x4 as long).<br/><br/></p> </ul> </div> <h2>Quick Start</h2> <div class="section"> Once you've installed Poet, create your initial environment: <pre><code><div class="shellcode">> poet new MyApp my_app/.poet_root my_app/bin/app.psgi my_app/bin/get.pl ... Now run 'my_app/bin/run.pl' to start your server.</div></code></pre>Then start your server: <pre><code><div class="shellcode">> my_app/bin/run.pl Running plackup --Reload ... --env development --port 5000 Watching ... for file updates. HTTP::Server::PSGI: Accepting connections at http://0:5000/</div></code></pre>For more, see <a href="https://metacpan.org/module/Poet::Manual::Tutorial">Poet::Manual::Tutorial</a>. </div> <h2>Source code</h2> <div class="section"> The latest source code is on github: <a href="http://github.com/jonswar/perl-mason">jonswar/perl-mason</a> and <a href="http://github.com/jonswar/perl-poet">jonswar/perl-poet</a>. </div> </div> </div> </body> </html>