Initial import
This commit is contained in:
commit
dd492db92e
37 changed files with 1953 additions and 0 deletions
12
bin/mk-schema.pl
Normal file
12
bin/mk-schema.pl
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env perl
|
||||
use v5.40;
|
||||
|
||||
use DBIx::Class::Schema::Loader qw(make_schema_at);
|
||||
|
||||
my $dsn = (require "./pooru-api-v0.conf")->{dsn};
|
||||
my %opts = (
|
||||
dump_directory => "lib",
|
||||
exclude => "dbix_migration",
|
||||
);
|
||||
|
||||
make_schema_at("Pooru::Schema", \%opts, [$dsn]);
|
12
bin/run.pl
Normal file
12
bin/run.pl
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env perl
|
||||
use Mojolicious::Lite;
|
||||
|
||||
app->secrets(["unused"]);
|
||||
|
||||
app->static->paths(["s"]);
|
||||
app->static->prefix("/s");
|
||||
|
||||
plugin Mount => { "/api/v0" => "script/pooru-api-v0" };
|
||||
plugin Mount => { "/" => "script/pooru-site" };
|
||||
|
||||
app->start;
|
Loading…
Add table
Add a link
Reference in a new issue