Hi John, All, I did some translations and the first version is now available on github. Link: https://github.com/ynonp/ctstarter.pl
What we have now: 1. binary file is named catalyzer.pl 2. Creates a complete Catalyst app from a template. Default template provides: Database support, Twitter Bootstrap TT view and User Management. 3. Starter is generated from a template. Template is a collection of features. 4. It's easy to build new templates and new features. I already implemented a few features: - AddPlugins: a feature that adds Catalyst plugins to the template - DefaultGenerator: runs the old catalyst.pl - DBIx: creates a simple SQLite database with an empty Schema.pm - UserManagement: creates users and roles, and a members only controller - TwitterBootstrapView: creaties a simple TT view which uses Twitter Bootstrap 5. An example template implementation can be found here (with all the above features): https://github.com/ynonp/ctstarter.pl/tree/master/templates/default 6. An example features implementations can be found here: https://github.com/ynonp/ctstarter.pl/tree/master/lib/CatalystX/ProjectBuilder/Features More info on the github page. Feedback, comments and questions are welcomed. Ynon On Thursday, August 22, 2013 at 15:46, John Napiorkowski wrote: > Ynon++ > > You might want to look at https://metacpan.org/module/Template::Tiny for > templating, I don't think we need all of TT > > John > > > From: Ynon Perek <ynonpe...@gmail.com (mailto:ynonpe...@gmail.com)> > > To: John Napiorkowski <jjn1...@yahoo.com (mailto:jjn1...@yahoo.com)>; The > > elegant MVC web framework <catalyst@lists.scsys.co.uk > > (mailto:catalyst@lists.scsys.co.uk)> > > Sent: Thursday, August 22, 2013 2:36 AM > > Subject: Re: [Catalyst] Catalyst starter template > > > > Hi, > > > > I think it should be easy enough to translate my code to the suggested > > catalyzer form. > > I'll do the coding and update. > > > > Then we'll be able to start writing templates. > > > > Cheers, > > Ynon > > > > > > > > On Tuesday, August 20, 2013 at 22:28, John Napiorkowski wrote: > > > > > > > > > > > > > > > > > > > ________________________________ > > > > From: "Gianrossi, Paolo" <paolino.gianro...@gmail.com > > > > (mailto:paolino.gianro...@gmail.com)> > > > > To: The elegant MVC web framework <catalyst@lists.scsys.co.uk > > > > (mailto:catalyst@lists.scsys.co.uk)> > > > > Sent: Tuesday, August 20, 2013 7:37 AM > > > > Subject: Re: [Catalyst] Catalyst starter template > > > > > > > > > > > > > > > > Isn't this something along the lines of > > > > https://github.com/RailsApps/rails-composer/ for RoR? > > > > > > Yes, I was thinking something like that. There's be an app on CPAN, > > > something pure Perl to make it trivial to install. > > > > > > cpanm CatalystX::App::ProjectBuilder > > > > > > and then that would install a commandline app that took a configuration > > > file of key values and either a url or name of an installed CPAN > > > distribution with the templates > > > > > > cat myconfig | catalyzer http://github.com/path_to_something > > > > > > where myconfig would just be a hash ref > > > > > > { > > > name => ... > > > .... > > > } > > > > > > and the url would be a repo with templates, probably using something > > > lighter than template toolkit > > > > > > You'd need to be able to specify some values via the commandline I guess > > > > > > > > > cat myconfig | catalyzer --namespace MyApp::Web --template > > > http://github.com/path_to_something > > > > > > > > > that would probably work well for just being a project directory and file > > > builder. It would do some of the stuff that puppet or chef does, like > > > install mysql, and all that. These are probably overlapping concerns, > > > and I think having something like ^^ would be pretty easy to do and also > > > I think really, REALLY helpful to people using Catalyst. > > > > > > I know if such a think existed I'd put some templates on github pretty > > > quick. > > > > > > If someone wants to take this on, I'd be happy to assist. > > > > > > John > > > > > > > > > > > > > > > > > > > On 17 Aug 2013, at 20:21, Ynon Perek <ynonpe...@gmail.com > > > > (mailto:ynonpe...@gmail.com)> wrote: > > > > > > > > Hi All, > > > > > > > > > > > > > > > After working with catalyst for some time, I found catalyst.pl > > > > > (http://catalyst.pl/) too minimalistic for my needs. > > > > > > > > > > > > > > > So I created a small script called ctstarter.pl > > > > > (http://ctstarter.pl/) that adds some features to the base template > > > > > you get for a new project. Currently it adds: > > > > > > > > > > > > > > > 1. A starter DB and migrations (using DBIx::Class::Migration) > > > > > 2. Code and DB tables for managing users and roles (using > > > > > CatalystX::SimpleLogin) > > > > > 3. A Twitter Bootstrap web view with templates (using > > > > > Catalyst::Helper::View::Bootstrap) > > > > > 4. Two helper scripts: one to upgrade the DB and the other to reset > > > > > admin password. > > > > > > > > > > > > > > > You can find the source and usage instructions here: > > > > > https://github.com/ynonp/ctstarter.pl > > > > > > > > > > > > > > > Any feedbacks is appreciated. > > > > > > > > > > > > > > > Cheers, > > > > > Ynon > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > List: Catalyst@lists.scsys.co.uk (mailto:Catalyst@lists.scsys.co.uk) > > > > > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > > > > > Searchable archive: > > > > > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > > > > > Dev site: http://dev.catalyst.perl.org > > > > > (http://dev.catalyst.perl.org/)/ > > > > > > > > > > > > > > > > > _______________________________________________ > > > > List: Catalyst@lists.scsys.co.uk (mailto:Catalyst@lists.scsys.co.uk) > > > > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > > > > Searchable archive: > > > > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > > > > Dev site: http://dev.catalyst.perl.org (http://dev.catalyst.perl.org/)/ > > > > > > > > > > > > > _______________________________________________ > > > List: Catalyst@lists.scsys.co.uk (mailto:Catalyst@lists.scsys.co.uk) > > > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > > > Searchable archive: > > > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > > > Dev site: http://dev.catalyst.perl.org (http://dev.catalyst.perl.org/)/ > > > > > > > > > > > > > > > > >
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/