You're not currently signed in. Sign in.

Previous revision | Next revision
@@ -2,8 +2,35 @@ Then it's as easy as: + perl -MCPAN -e'install Jifty' + + mkdir ~/MyJiftyApp + cd MyJiftyApp + mkdir bin + echo '#!/usr/bin/perl + use Jifty::Script; + Jifty::Script->dispatch;' > bin/jifty + chmod 755 bin/jifty - cd path/to/my/jifty/app + mkdir -p lib/MyJiftyApp/Model/ + + echo ' + + package MyJiftyApp::Model::User::Schema; + use Jifty::DBI::Schema; + + column name => type is 'char', + is mandatory; + column email => type is 'char'; + + + package MyJiftyApp::Model::User; + use base qw/MyJiftyApp::Record/; + + 1; + + ' > lib/MyJiftyApp/Model/User.pm + ./bin/jifty schema --create --install --force ./bin/jifty server

First, the developers need to release the framework.

Then it's as easy as:

   perl -MCPAN -e'install Jifty'

   mkdir ~/MyJiftyApp
   cd MyJiftyApp
   mkdir bin
   echo '#!/usr/bin/perl
    use Jifty::Script; 
    Jifty::Script->dispatch;' > bin/jifty       
   chmod 755 bin/jifty

   mkdir -p lib/MyJiftyApp/Model/

    echo '

       package MyJiftyApp::Model::User::Schema;
       use Jifty::DBI::Schema;

      column name => type is 'char',
           is mandatory;
      column email => type is 'char';


       package MyJiftyApp::Model::User;
       use base qw/MyJiftyApp::Record/;

       1;

     ' > lib/MyJiftyApp/Model/User.pm

   ./bin/jifty schema --create --install --force
   ./bin/jifty server