Re: [Catalyst] Catalyst starter template

2013-09-04 Thread John Napiorkowski






 From: David Schmidt davew...@gmx.at
To: The elegant MVC web framework catalyst@lists.scsys.co.uk 
Sent: Tuesday, September 3, 2013 2:48 AM
Subject: Re: [Catalyst] Catalyst starter template
 

Quite late but when I read your email again i had to think of this
other module which does a similiar thing and thought I'd mention it
here.

https://github.com/marcelgruenauer/CatalystX-Crudite

CatalystX-Crudite is a framework for writing Catalyst-based CMS web
applications. It includes out-of-the-box user and role management and
many starter templates. It builds upon CatalystX-Resource and
CatalystX-SimpleLogin.

In order for crudite_starter to work, you need to install this
distribution. The starter templates are stored as per-dist shared
files using File::ShareDir, so they can't be found from the
uninstalled repository. I hope to improve this in a later version.


I used File::ShareDir::ProjectDistDir

to solve the 'make F:SD work the same in both dev and when installed.  You can 
see an example of my usage here

https://metacpan.org/module/DBIx::Class::Migration::ShareDirBuilder


I think this is going to be a case of ' the more the merrier'.  I think we all 
agree the one size fits all approach dating back to the dawn of Catalyst just 
is not going to work over the longer term. So lets all experiment!  Keep 
sending you ideas and code to this thread and I will blog about them in a bit.

John


On 17 August 2013 21:21, Ynon Perek ynonpe...@gmail.com wrote:
 Hi All,

 After working with catalyst for some time, I found catalyst.pl too
 minimalistic for my needs.

 So I created a small script called 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
 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/


___
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/




___
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/


Re: [Catalyst] Catalyst starter template

2013-09-03 Thread Ken Hathaway
I think this is a move in the right direction. My dream is that lots of
github templates will be developed that will simplify Catalyst startup for
lots'o different projects. This could go a long way towards Catalyst usage
by the masses. (maybe!)

Thanks Ynon for taking this on. I think it's brilliant!

see ya
ken


On Mon, Sep 2, 2013 at 10:02 AM, Ynon Perek ynonpe...@gmail.com wrote:

 Hi ferz,

 As I understood John was talking about the templating engine used to
 create the starter app, not the one that will be used IN the app.

 The idea to use project templates means that some templates will create
 projects with Template, some with Template::Tiny, some will allow database
 etc.

 Currently though there's only one project template (with Template,
 DBIx::Class and SimpleLogin)

 Cheers,
   Ynon

 --
 כותב הרצאות ? מדבר מול קהל ? הבלוג שלי לומד 
 לדברhttp://publicspeakr.blogspot.co.ilכתוב במיוחד בשבילך

 On Sunday, September 1, 2013 at 22:32, Ferruccio Zamuner wrote:

 On 08/22/13 14: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


 If the catalyzer is for help new users, I do not agree with a simplier
 template engine:

 * TT is full featured and it's good to start too
 * we can provide a good example and a good starting skeleton to build
 any more complex application
 * new users will have not to learn how to add or substitute the default
 view template engine.

 Probably we need to think about the target of this kind of tool.

 Bye, \ferz

 ___
 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/



 ___
 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/




-- 
See ya
ken

If you are not happy.
Change your mind.
___
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/


Re: [Catalyst] Catalyst starter template

2013-09-03 Thread David Schmidt
Quite late but when I read your email again i had to think of this
other module which does a similiar thing and thought I'd mention it
here.

https://github.com/marcelgruenauer/CatalystX-Crudite

CatalystX-Crudite is a framework for writing Catalyst-based CMS web
applications. It includes out-of-the-box user and role management and
many starter templates. It builds upon CatalystX-Resource and
CatalystX-SimpleLogin.

In order for crudite_starter to work, you need to install this
distribution. The starter templates are stored as per-dist shared
files using File::ShareDir, so they can't be found from the
uninstalled repository. I hope to improve this in a later version.


On 17 August 2013 21:21, Ynon Perek ynonpe...@gmail.com wrote:
 Hi All,

 After working with catalyst for some time, I found catalyst.pl too
 minimalistic for my needs.

 So I created a small script called 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
 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/


___
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/


Re: [Catalyst] Catalyst starter template

2013-09-02 Thread Ynon Perek
Hi ferz,

As I understood John was talking about the templating engine used to create the 
starter app, not the one that will be used IN the app.  

The idea to use project templates means that some templates will create 
projects with Template, some with Template::Tiny, some will allow database etc.

Currently though there's only one project template (with Template, DBIx::Class 
and SimpleLogin)

Cheers,
  Ynon


--  
כותב הרצאות ? מדבר מול קהל ? הבלוג שלי לומד לדבר 
(http://publicspeakr.blogspot.co.il) כתוב במיוחד בשבילך


On Sunday, September 1, 2013 at 22:32, Ferruccio Zamuner wrote:

 On 08/22/13 14: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
  
 If the catalyzer is for help new users, I do not agree with a simplier  
 template engine:
  
 * TT is full featured and it's good to start too
 * we can provide a good example and a good starting skeleton to build
 any more complex application
 * new users will have not to learn how to add or substitute the default  
 view template engine.
  
 Probably we need to think about the target of this kind of tool.
  
 Bye, \ferz
  
 ___
 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/
  
  


___
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/


Re: [Catalyst] Catalyst starter template

2013-09-01 Thread Ferruccio Zamuner

On 08/22/13 14: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


If the catalyzer is for help new users, I do not agree with a simplier 
template engine:


* TT is full featured and it's good to start too
* we can provide a good example and a good starting skeleton to build
any more complex application
* new users will have not to learn how to add or substitute the default 
view template engine.


Probably we need to think about the target of this kind of tool.

Bye,\ferz

___
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/


Re: [Catalyst] Catalyst starter template

2013-08-30 Thread John Napiorkowski
Ynon++

I'll play with it tonight  -jnap




 From: Ynon Perek ynonpe...@gmail.com
To: John Napiorkowski jjn1...@yahoo.com 
Cc: The elegant MVC web framework catalyst@lists.scsys.co.uk 
Sent: Thursday, August 29, 2013 3:00 PM
Subject: Re: [Catalyst] Catalyst starter template
 


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
To: John Napiorkowski jjn1...@yahoo.com; The elegant MVC web framework 
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
To: The elegant MVC web framework 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 wrote:


Hi All, 




After working with catalyst for some time, I found catalyst.pl too 
minimalistic for my needs. 




So I created a small script called 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
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

Re: [Catalyst] Catalyst starter template

2013-08-29 Thread Ynon Perek
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

Re: [Catalyst] Catalyst starter template

2013-08-22 Thread Ynon Perek
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/
   
  
  
  ___
  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/
  
 
 
 ___
 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/
 
 


___
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/


Re: [Catalyst] Catalyst starter template

2013-08-22 Thread John Napiorkowski
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
To: John Napiorkowski jjn1...@yahoo.com; The elegant MVC web framework 
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
To: The elegant MVC web framework 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 wrote:


Hi All, 




After working with catalyst for some time, I found catalyst.pl too 
minimalistic for my needs. 




So I created a small script called 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
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/


___
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/


___
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/ 



___
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/


Re: [Catalyst] Catalyst starter template

2013-08-20 Thread Ynon Perek
Hi John and All,

I like the templates idea - however I think chef is an overkill (not everyone 
using catalyst know chef, and there's already a learning curve. Adding a new 
technology may only make things harder on new users).

IMHO the best option would be to have several project templates on github, and 
a user can just git clone a starter.  

Problem here is the application name needs to be modified in the process (which 
really appears everywhere).

If we can work around that anyone will be able to write their own template  

--  
כותב הרצאות ? מדבר מול קהל ? הבלוג שלי לומד לדבר 
(http://publicspeakr.blogspot.co.il) כתוב במיוחד בשבילך


On Monday, August 19, 2013 at 15:43, John Napiorkowski wrote:

 Ynon,
  
 Yeah, the skeleton builder is showing its age a bit.  I personally never use 
 it, but I see the need for something like this.
  
 I've come to the conclusion that 'one starter to rule them all' isn't going 
 to be very forward looking no matter what it looks like.  I was pondering 
 something were people could easily make templates and skel on say github and 
 people could point some sort of cmd line tool at it and just use their 
 favorite authors way of doing it.  That way people could fork their favorite 
 and tweak it a bit.  We could even have a repo on github with a list of all 
 the know templates that the commandline tools would read and make it straight 
 up to generate a new project.
  
 On the other hand... maybe its silly to reinvent the wheel here.  Isn't this 
 just what Chef and Puppet do?  Maybe we should just use that instead?  I 
 personally have no issue using Python or Ruby for something as simple as a 
 project builder, and it would solve some issues.  We'd even be able to make 
 chef scripts to do stuff like set up common tables and all that (how many 
 user/role tables have you made).
  
 Of course Puppet/Chef might seem like terrible overkill as well.  Again, It 
 would be nice to have a way for people to be able to easily create basic 
 project templates and a little more, like setup mysql, etc.
  
 Thoughts?
  
 John
  
  From: Ynon Perek ynonpe...@gmail.com (mailto:ynonpe...@gmail.com)
  To: catalyst@lists.scsys.co.uk (mailto:catalyst@lists.scsys.co.uk)  
  Sent: Saturday, August 17, 2013 3:21 PM
  Subject: [Catalyst] Catalyst starter template
   
  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/
   
   
 ___
 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/
  
  


___
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/


Re: [Catalyst] Catalyst starter template

2013-08-20 Thread Kieren Diment
I agree, if perl isn't good for mangling text then what is?

The Catalsyt Devel code should be in a reasonable state for a volunteer to take 
it on should the itch need to be scratched badly enough.

On 20/08/2013, at 8:45 PM, Ynon Perek wrote:

 Hi John and All,
 
 I like the templates idea - however I think chef is an overkill (not everyone 
 using catalyst know chef, and there's already a learning curve. Adding a new 
 technology may only make things harder on new users).
 
 IMHO the best option would be to have several project templates on github, 
 and a user can just git clone a starter.  
 
 Problem here is the application name needs to be modified in the process 
 (which really appears everywhere).
 
 If we can work around that anyone will be able to write their own template  
 
 --  
 כותב הרצאות ? מדבר מול קהל ? הבלוג שלי לומד לדבר 
 (http://publicspeakr.blogspot.co.il) כתוב במיוחד בשבילך
 
 
 On Monday, August 19, 2013 at 15:43, John Napiorkowski wrote:
 
 Ynon,
 
 Yeah, the skeleton builder is showing its age a bit.  I personally never use 
 it, but I see the need for something like this.
 
 I've come to the conclusion that 'one starter to rule them all' isn't going 
 to be very forward looking no matter what it looks like.  I was pondering 
 something were people could easily make templates and skel on say github and 
 people could point some sort of cmd line tool at it and just use their 
 favorite authors way of doing it.  That way people could fork their favorite 
 and tweak it a bit.  We could even have a repo on github with a list of all 
 the know templates that the commandline tools would read and make it 
 straight up to generate a new project.
 
 On the other hand... maybe its silly to reinvent the wheel here.  Isn't this 
 just what Chef and Puppet do?  Maybe we should just use that instead?  I 
 personally have no issue using Python or Ruby for something as simple as a 
 project builder, and it would solve some issues.  We'd even be able to make 
 chef scripts to do stuff like set up common tables and all that (how many 
 user/role tables have you made).
 
 Of course Puppet/Chef might seem like terrible overkill as well.  Again, It 
 would be nice to have a way for people to be able to easily create basic 
 project templates and a little more, like setup mysql, etc.
 
 Thoughts?
 
 John
 
 From: Ynon Perek ynonpe...@gmail.com (mailto:ynonpe...@gmail.com)
 To: catalyst@lists.scsys.co.uk (mailto:catalyst@lists.scsys.co.uk)  
 Sent: Saturday, August 17, 2013 3:21 PM
 Subject: [Catalyst] Catalyst starter template
 
 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/
 
 
 ___
 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/
 
 
 
 
 ___
 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/


___
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/


Re: [Catalyst] Catalyst starter template

2013-08-20 Thread Gianrossi, Paolo
Isn't this something along the lines of 
https://github.com/RailsApps/rails-composer/ for RoR?

On 17 Aug 2013, at 20:21, Ynon Perek ynonpe...@gmail.com wrote:

 Hi All,
 
 After working with catalyst for some time, I found catalyst.pl too 
 minimalistic for my needs. 
 
 So I created a small script called 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
 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/

___
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/


Re: [Catalyst] Catalyst starter template

2013-08-20 Thread John Napiorkowski






 From: Gianrossi, Paolo paolino.gianro...@gmail.com
To: The elegant MVC web framework 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 wrote:

Hi All, 


After working with catalyst for some time, I found catalyst.pl too 
minimalistic for my needs. 


So I created a small script called 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
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/


___
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/




___
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/


Re: [Catalyst] Catalyst starter template

2013-08-19 Thread John Napiorkowski
Ynon,


Yeah, the skeleton builder is showing its age a bit.  I personally never use 
it, but I see the need for something like this.

I've come to the conclusion that 'one starter to rule them all' isn't going to 
be very forward looking no matter what it looks like.  I was pondering 
something were people could easily make templates and skel on say github and 
people could point some sort of cmd line tool at it and just use their favorite 
authors way of doing it.  That way people could fork their favorite and tweak 
it a bit.  We could even have a repo on github with a list of all the know 
templates that the commandline tools would read and make it straight up to 
generate a new project.

On the other hand... maybe its silly to reinvent the wheel here.  Isn't this 
just what Chef and Puppet do?  Maybe we should just use that instead?  I 
personally have no issue using Python or Ruby for something as simple as a 
project builder, and it would solve some issues.  We'd even be able to make 
chef scripts to do stuff like set up common tables and all that (how many 
user/role tables have you made).

Of course Puppet/Chef might seem like terrible overkill as well.  Again, It 
would be nice to have a way for people to be able to easily create basic 
project templates and a little more, like setup mysql, etc.

Thoughts?

John




 From: Ynon Perek ynonpe...@gmail.com
To: catalyst@lists.scsys.co.uk 
Sent: Saturday, August 17, 2013 3:21 PM
Subject: [Catalyst] Catalyst starter template
 


Hi All, 


After working with catalyst for some time, I found catalyst.pl too 
minimalistic for my needs. 


So I created a small script called 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
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/


___
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/