Mojolicious Full and Lite comparison, with DBIC and unit tests

191 views
Skip to first unread message

Glen Hinkle

unread,
Feb 7, 2012, 4:17:45 PM2/7/12
to Mojolicious
I've created an example application to demonstrate the differences
between Full and Lite implementations.

Both Full and Lite implementations are functionally identical, and
demonstrate usage of DBIx::Class and tests.

Full description, usage instructions, and screenshot:
https://github.com/tempire/MojoExample


For the non-git savvy, a zip file:
https://github.com/tempire/MojoExample/zipball/master


Questions are welcome. If you have trouble understanding something,
please speak up, either in this thread or in #mojo.

Sebastian Riedel

unread,
Feb 7, 2012, 4:21:19 PM2/7/12
to mojol...@googlegroups.com
Great example!

--
Sebastian Riedel
http://twitter.com/kraih
http://mojolicio.us

Roland Lammel

unread,
Feb 8, 2012, 6:31:10 AM2/8/12
to mojol...@googlegroups.com
Awesome. That will be a great pointer for a lot of newbie and not-so newbie questions.

Only thing missing would be authentication, but that would probably complicate this example too much.




--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To post to this group, send email to mojol...@googlegroups.com.
To unsubscribe from this group, send email to mojolicious...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.


Виктор Турский

unread,
Feb 8, 2012, 7:30:37 AM2/8/12
to mojol...@googlegroups.com
Nice! Only one thing more is required - Makefile.PL :). With makefile
it will be convinient to:
1. See dependencies
2. Install deps with "cpanm --installdeps ."
3. Run tests via "make test"
4. Practice in deploying the application to cloud hostings like dotcloud.com

And in any case work with Makefile is a good practice for any Perl developer :)

--
Viktor Turskyi
http://webbylab.com
http://koorchik.blogspot.com

Виктор Турский

unread,
Feb 11, 2012, 5:00:13 AM2/11/12
to mojol...@googlegroups.com
2012/2/7 Glen Hinkle <gl...@empireenterprises.com>:

> I've created an example application to demonstrate the differences
> between Full and Lite implementations.

I think that perl 5.14 dependency is to strict. Perl 5.12 is not so old.

Can't load application "mojolite":
DBIx::Class::Schema::throw_exception(): Feature bundle "5.14" is not
supported by Perl 5.12.4 at
/home/koorchik/.perl5/lib/perl5/Modern/Perl.pm line 41
BEGIN failed--compilation aborted at lib/Schema/ResultSet/Photoset.pm line 3.

Reply all
Reply to author
Forward
0 new messages