Skip to content

A small Mojolicious Lite application that calculates the daily/weekly/monthly/yearly downtime based on a percentage of SLA

License

Notifications You must be signed in to change notification settings

bencawkwell/oppetid---A-mojolicious-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

While demonstrating the benefits of Mojolicious to a friend, he asked me to rewrite http://www.oppetid.info/ to prove that there were benfits of this framework. This is the rewrite using Mojolicious::Lite.

Features

  • Uses DateTime to do the calculations

    Whether it does it correctly is up for debate.

  • Uses Mojolicious::Plugin::I18n, for localisation into norwegian.

  • Demonstrates using custom regex patterns on routes.

  • Example use of hooks (used to determine locale from the url

  • Uses session

  • Adds a custom helper, and makes use of blocks in templates

  • Comes with a set of tests

Installation

cpan Mojolicious
cpan DateTime
cpan DateTime::Format::Duration;

Then check out the code using git:

git clone git://github.com/bencawkwell/oppetid---A-mojolicious-example.git
cd oppetid---A-mojolicious-example

Then run the application:

./opptid.pl

About

A small Mojolicious Lite application that calculates the daily/weekly/monthly/yearly downtime based on a percentage of SLA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages