Acme-CPANModulesBundle-Import-MojoliciousAdvent-2017

 view release on metacpan or  search on metacpan

devdata/https_mojolicious.io_blog_2017_12_01_day-1-getting-started  view on Meta::CPAN


<pre><code>use Mojolicious::Lite;
get &#39;/&#39; =&gt; {text =&gt; &#39;Hello 🌍 World!&#39;};
app-&gt;start;
</code></pre>

<p>This script simply</p>

<ul>
<li>imports Mojolicious (the lite version)</li>
<li>defines a GET handler to respond to requests with a unicode version of hello world</li>
<li>starts the application</li>
</ul>

<p>But before that&#39;s any use to us, we have to start a web server.</p>

<h2>Running Your Application</h2>

<p>Mojolicious applications (as we&#39;ll see in another post) are more than just web servers.
In order to use them as one, we need to start it as a web server.</p>



( run in 0.907 second using v1.01-cache-2.11-cpan-4e96b696675 )