Boilerpalte for Perl Web application using Mojolicious and other modules.
- Mojo / Mojolicious based.
- Support Plack PSGI for production operation.
- Support Database by DBIx::Skinny.
- Practical directory structure.
- Inclue Log, UserAgent, and Cache role.
- YAML Configuration.
- Install with
cpanfile
.
git clone
Mojoplate repository
$ git clone git://github.com/yusukebe/Mojoplate.git mojoplate
$ cd mojoplate
- Install
Carton
$ url -L cpanmin.us | perl - Carton
- Install dependent modules with
Carton
$ carton install
- Start apps
$ ./develop
then development server will up on `http://localhost:5000/'
Launch web app service
$ docker-compose up
Do tests
$ docker-compose run --rm app prove
$ find . -type f -print0 | xargs -0 sed -i '' "s/Mojoplate/MyApp/g"
.
├── cli
├── config
│ ├── development.yml
│ └── production.yml
├── cpanfile
├── cpanfile.snapshot
├── etc
│ └── mojoplate.sql
├── lib
│ ├── Mojoplate
│ │ ├── API.pm
│ │ ├── Cache.pm
│ │ ├── DB
│ │ │ ├── Row
│ │ │ │ └── Entry.pm
│ │ │ ├── Row.pm
│ │ │ └── Schema.pm
│ │ ├── DB.pm
│ │ ├── Role
│ │ │ ├── Cache.pm
│ │ │ ├── DB.pm
│ │ │ ├── Log.pm
│ │ │ └── UserAgent.pm
│ │ ├── Web
│ │ │ └── Controller
│ │ │ └── Root.pm
│ │ └── Web.pm
│ └── Mojoplate.pm
├── log
├── mojoplate.psgi
├── public
└── templates
├── layouts
│ └── default.html.ep
└── root
└── index.html.ep
- Mojolicious https://www.mojolicious.org
- DBIx::Skinny https://metacpan.org/pod/DBIx::Skinny
- Plack https://github.com/plack/Plack
Yusuke Wada https://github.com/yusukebe