You're not currently signed in. Sign in.

Previous revision | Next revision
@@ -6,20 +6,23 @@ jifty app --name MyJiftyApp cd MyJiftyApp + jifty model --name User - echo ' - package MyJiftyApp::Model::User::Schema; - use Jifty::DBI::Schema; + Edit lib/MyJiftyApp/Model/User.pm to add the following + lines in the schema section: - column name => type is 'char', + column name => + type is 'text', is mandatory; - column email => type is 'char'; + column email => + type is 'text'; - package MyJiftyApp::Model::User; - use base qw/MyJiftyApp::Record/; + And then run this command to set up your database - 1; - ' > lib/MyJiftyApp/Model/User.pm + jifty schema --setup - jifty schema --create --install --force + When you're ready to use your (somewhat simplistic) new + user database, start the standalone jifty server for your + application: + jifty server

First, the developers need to release the framework.

Then it's as easy as:

   perl -MCPAN -e'install Jifty'

   jifty app --name MyJiftyApp
   cd MyJiftyApp
   jifty model --name User

Edit lib/MyJiftyApp/Model/User.pm to add the following lines in the schema section:

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

And then run this command to set up your database

   jifty schema --setup

When you're ready to use your (somewhat simplistic) new user database, start the standalone jifty server for your application:

   jifty server