Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

memowe/viralgiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViralGiral

Builder for viral web "games".

Travis CI tests Codecov test coverage Coveralls test coverage

#!/usr/bin/env perl
use Mojolicious::Lite -signatures;

plugin ViralGiral => {
    data_filename   => '/path/to/storage_file.data',    # default: ./VG_data
    prefix          => 'foo',                           # default: 'vg'
    introspection   => 1,                               # default: undef
};

# Viral "games" routes generated.
# ViralGiral::Data helper available.

get '/inspect_entity/:uuid' => sub ($c) {
    my $e = $c->viralgiral_data->get_entity($c->param('uuid'));
    $c->render(text => $c->dumper($e));
};

app->start;

Prerequisites

Perl 5.20

Module Version
Clone 0.39
EventStore::Tiny 0.6
Mojolicious 7.93
UUID::Tiny 1.04
Test::Exception
(Tests only)
0.43

License and copyright

Copyright (c) 2018-2019 Mirko Westermeier (@memowe, mirko@westermeier.de)

Released under the MIT (X11) license. See LICENSE.txt for details.

About

Builder for viral web "games"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages