1DANCER2(1) User Contributed Perl Documentation DANCER2(1)
2
3
4
6 dancer2 - Dancer2 command line interface
7
9 version 0.207000
10
12 dancer2 <command> [options...]
13
15 Dancer2 is the new generation lightweight web-framework for Perl. This
16 tool provides nice, easily-extendable CLI interface for it.
17
18 Documentation Index
19 Documentation on Dancer2 is split into several manpages. Below is a
20 complete outline on where to go for help.
21
22 · Dancer2 Tutorial
23
24 If you are new to the Dancer approach, you should start by reading
25 our Dancer2::Tutorial.
26
27 · Dancer2 Manual
28
29 Dancer2::Manual is the reference for Dancer2. Here you will find
30 information on the concepts of Dancer2 application development and
31 a comprehensive reference to the Dancer2 domain specific language.
32
33 · Dancer2 Keywords
34
35 The keywords for Dancer2 can be found under DSL Keywords.
36
37 · Dancer2 Deployment
38
39 For configuration examples of different deployment solutions
40 involving Dancer2 and Plack, refer to Dancer2::Manual::Deployment.
41
42 · Dancer2 Cookbook
43
44 Specific examples of code for real-life problems and some 'tricks'
45 for applications in Dancer can be found in Dancer2::Cookbook
46
47 · Dancer2 Config
48
49 For configuration file details refer to Dancer2::Config. It is a
50 complete list of all configuration options.
51
52 · Dancer2 Plugins
53
54 Refer to Dancer2::Plugins for a partial list of available Dancer2
55 plugins. Note that although we try to keep this list up to date we
56 expect plugin authors to tell us about new modules.
57
58 · Dancer2 Migration guide
59
60 Dancer2::Manual::Migration provides the most up-to-date instruction
61 on how to convert a Dancer (1) based application to Dancer2.
62
64 dancer2 - Dancer2 command line interface
65
67 gen : create new Dancer2 application
68 commands : list the application's commands
69 help : display a command's help screen
70 version : display version
71
72 To get detailed description of each individual command run:
73 dancer2 help <command>
74
75 The lastest list of available commands can be dispayed by:
76 dancer2 commands
77
79 Helper script for providing a bootstrapping method to quickly and
80 easily create the framework for a new Dancer2 application.
81
82 OPTIONS
83
84 -a --application the name of your application
85 -p --path the path where to create your application
86 (current directory if not specified)
87 -o --overwrite overwrite existing files
88 -x --no-check don't check for the latest version of Dancer2
89 (checking version implies internet connection)
90 -s --skel skeleton directory
91
92 EXAMPLE
93
94 Here is an application created with dancer2:
95
96 $ dancer2 gen -a MyWeb::App
97 + MyWeb-App
98 + MyWeb-App/bin
99 + MyWeb-App/bin/app.psgi
100 + MyWeb-App/config.yml
101 + MyWeb-App/environments
102 + MyWeb-App/environments/development.yml
103 + MyWeb-App/environments/production.yml
104 + MyWeb-App/views
105 + MyWeb-App/views/index.tt
106 + MyWeb-App/views/layouts
107 + MyWeb-App/views/layouts/main.tt
108 + MyWeb-App/MANIFEST.SKIP
109 + MyWeb-App/lib
110 + MyWeb-App/lib/MyWeb
111 + MyWeb-App/lib/MyWeb/App.pm
112 + MyWeb-App/public
113 + MyWeb-App/public/css
114 + MyWeb-App/public/css/style.css
115 + MyWeb-App/public/css/error.css
116 + MyWeb-App/public/images
117 + MyWeb-App/public/500.html
118 + MyWeb-App/public/404.html
119 + MyWeb-App/public/dispatch.fcgi
120 + MyWeb-App/public/dispatch.cgi
121 + MyWeb-App/public/javascripts
122 + MyWeb-App/public/javascripts/jquery.js
123 + MyWeb-App/t
124 + MyWeb-App/t/002_index_route.t
125 + MyWeb-App/t/001_base.t
126 + MyWeb-App/Makefile.PL
127
128 The application is ready to serve:
129
130 $ cd MyWeb-App
131 $ plackup bin/app.psgi
132 >> Listening on 127.0.0.1:3000
133 == Entering the development dance floor ...
134
136 This script has been written by Ivan Kruglov <ivan.kruglov@yahoo.com>
137 base on original dancer2 script which has been written by Sebastien
138 Deseille <sebastien.deseille@gmail.com> and Alexis Sukrieh
139 <sukria@cpan.org>.
140
142 See Dancer2 for more information.
143
145 This module is free software and is published under the same terms as
146 Perl itself.
147
149 Dancer Core Developers
150
152 This software is copyright (c) 2018 by Alexis Sukrieh.
153
154 This is free software; you can redistribute it and/or modify it under
155 the same terms as the Perl 5 programming language system itself.
156
157
158
159perl v5.28.0 2018-11-15 DANCER2(1)