2015-09-03 @ YAPC::Europe 2015
Yusuke Wada a.k.a. yusukebe
search.cpan.org/~yusukebe
twitter.com/yusukebe
github.com/yusukebe
I’ll talk about the fun of “Local server based Web Application” and how to make it!
This application is…
App::revealup
as a CPAN distribution!
App::revealup
App::revealup
$ cpanm App::revealup
revealup
command is available to use
## First title
This is text... **bold** *Italic*
* List object
* List object
The slide sparator charactors are `---`
To separate pages, write 3 hyphens
$ revealup serve example.md
$ open http://localhost:3000
Then your favorite web browser will open
revelup serve
- Options-p
or -port
--theme
--transition
--width
--height
$ revealup serve example.md --theme moon.css --transition zoom
:-)
App::revealup uses reveal.js
reveal.js
is a JavaScript library for a presentation.
App::revealup
reveal.js
implementing these:
reveal.js
as Local server based Web Application is…App::revealup
is one of the best CPAN modules on 2014App::revealup enables markdown driven presentations with Reveal.js, by implementing a mini HTTP server. I wrote about it (twice) and use it all the time, highly recommended.
like App::revealup
Pod::Server
Gitalist
Remedie
PAD
$ pod_server
$ pad Static --port 3000
Local server based web applications are
use CPAN modules;
Introduce cool modules to make local server based Web Applications quickly or easily
Plack
Toolkit for making Web application frameworks
plackup
and Plack Application$ plackup -MPlack::App::Directory \
-e'Plack::App::Directory->new->to_app'
use Plack::Request
my $app = {
my $env = shift; # PSGI env
my $req = Plack::Request->new($env);
...; # Make your response
return $res;
};
Using Plack is good for small web applications
Text::MicroTemplate
Micro template engine
Mojo::Template
Mojolicious
<h2><?= $second_title ?></h2>
Getopt::Long
Processor of commad line options
@ARGV
to (key-value)sPath::Tiny
File path utilitis
File::ShareDir
Resolve location of distribution shared files
Path::Tiny
App::revealup
is using…File::ShareDir
Getopt::Long
MIME::Types
Path::Tiny
Plack
Text::MicroTemplate
Try::Tiny
Local server based Web Application…
App::mookview
We wrote the book about “making web applications” !
There is not a good viewer for previewing this book
Local server based Web Application is