> Which leads me back to my original questions. a) Is there a
> Mojolicious + MySQL + CRUD tutorial, and if not b) what exactly do
> people use Mojolicious for?
I can't answer "a". I can point you to a few things:
https://gist.github.com/261811
http://search.cpan.org/~bduggan/Mojolicious-Plugin-Toto-0.08/lib/Mojolicious/Plugin/Toto.pm
As for "b": We use it (now effectively to replace Catalyst), as a very
light weight, very easy to deploy web framework that simply does not get
in the way. We don't do a great deal of database work (extremely little
actually), so this is less of a concern for us.
I like Catalyst. It is a very good framework. Its just a monstrosity
to deploy and I was forever in a dependency and deployment hell. A
significant number of the dependencies never really worked correctly
(*WWW::Mechanize*), which caused me all sorts of headaches on
installation and testing.
Contrast to Mojolicious (I really like the ::Lite version BTW). No
dependency hell. Everything "just works". I can start working right away.
Basically we are using it now for a command and control system for our
storage and storage clusters. It is used internally in one of our
diskless system control tools (to write PXE boot scripts on the fly).
Planning on using it for a quote configurator tool as well (where we
will need DB access, but I am looking at MongoDB and other similar less
SQLly DBs anyway). Still need something akin to CRUD there, but we can
either roll our own little one, or reuse a simple one from somewhere else.
We don't need big massive object frameworks. Just something simple,
that works, that we can deploy, test, etc. Mojolicious is this. After
~6 years of wrestling with Catalyst, as much as I liked it, it wasn't it.
--
Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics Inc.
email: lan...@scalableinformatics.com
web : http://scalableinformatics.com
http://scalableinformatics.com/sicluster
phone: +1 734 786 8423 x121
fax : +1 866 888 3112
cell : +1 734 612 4615
On Tue, Nov 1, 2011 at 4:51 AM, antigoon <stephen....@gmail.com> wrote:
> I'm curious about a couple of things a) Is there a Mojolicious + MySQL
> + CRUD tutorial --I've Googled quite a bit with no success-- and if
> not b) what exactly do people use Mojolicious for?
i think most of us are here because we did many years of web
development and are tired of someone trying to generate anything for
us that is much more as the bare minimum. the reason is that we only
want the bare minimum and that excludes any ready-made scaffolding for
CRUD or other stuff. the big issue with code generation is also that
it may work with SQL to some extend but my code runs on CouchDB,
others prefer Mongo or Riak and for some things SQLite is the thing -
we are way past the "one thing fits all" stage.
this may make your problem seem harder that it should be but trust me,
i whipped up a CRUD based site on CouchDB in ~1hour _excatly_ how i
need it for this project - including all the code around it that i
would have needed to write anyway.
to get you started have a look at bootstrap
(https://twitter.github.com/bootstrap) and have a look at the tag
helpers man page
(https://metacpan.org/module/Mojolicious::Plugin::TagHelpers) - that
is (in my view) a good combination and an easy to use starting point
to get something up and running in no time. also, have a look at the
various authentication plugins that suite your database as you may
need some sort of authenticated users section.
i prototype many ideas with mojolicious and normally have a basic
first draft after a days work - this is way faster than anything a
code generater could do (i tried many of them including the ones you
mentioned) for me and i end up with something i don't have to rewrite
to actually use it.
cheers
lenz
--
twitter: @norbu09
current project: iWantMyName.com
Regards
-Sergey
--
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.
_____________________________________________________
This electronic message and any files transmitted with it contains
information from iDirect, which may be privileged, proprietary
and/or confidential. It is intended solely for the use of the individual
or entity to whom they are addressed. If you are not the original
recipient or the person responsible for delivering the email to the
intended recipient, be advised that you have received this email
in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. If you received this email
in error, please delete it and immediately notify the sender.
_____________________________________________________
They're nice, but do you have the source available? Also, are
planning on doing one with Mysql backends and searches and joins?
Just one quick example would help a ton!
Thanks,
John