Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yusukebe/mojoplate
Boilerplate for Perl Web Application with Mojolicious
https://github.com/yusukebe/mojoplate
boilerplate mojolicious perl perl5 webapp
Last synced: 17 days ago
JSON representation
Boilerplate for Perl Web Application with Mojolicious
- Host: GitHub
- URL: https://github.com/yusukebe/mojoplate
- Owner: yusukebe
- License: mit
- Created: 2021-08-24T08:02:14.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-26T21:12:54.000Z (over 3 years ago)
- Last Synced: 2024-10-19T17:56:15.780Z (2 months ago)
- Topics: boilerplate, mojolicious, perl, perl5, webapp
- Language: Perl
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mojoplate
Boilerpalte for Perl Web application using Mojolicious and other modules.
## Features
* 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` .## Getting Stared
1. `git clone` Mojoplate repository
```
$ git clone git://github.com/yusukebe/Mojoplate.git mojoplate
$ cd mojoplate
```2. Install `Carton`
```
$ url -L cpanmin.us | perl - Carton
```3. Install dependent modules with `Carton`
```
$ carton install
```4. Start apps
```
$ ./develop
```then development server will up on `http://localhost:5000/'
## With Docker
Launch web app service
```
$ docker-compose up
```Do tests
```
$ docker-compose run --rm app prove
```## Apply your app
```
$ find . -type f -print0 | xargs -0 sed -i '' "s/Mojoplate/MyApp/g"
```## Directory structure and Files
```
.
├── 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
```## See Also
* Mojolicious
* DBIx::Skinny
* Plack## Author
Yusuke Wada