public
Fork of KrisJordan/recess
Description: Recess is a REST oriented, full-stack PHP framework.
Homepage: http://www.recessframework.org
Clone URL: git://github.com/recess/recess.git
KrisJordan (author)
Tue Feb 17 01:37:22 -0800 2009
commit  0732afaedb8a178a8d3265e7258560ea9a0eecfa
tree    d3b679161ea5f5f0ec81785acbf492f483cfae78
parent  ee292b293a44d73ca68efce8ed86e5f5a4a6f90d
recess /
name age message
file .gitignore Tue Feb 17 01:37:22 -0800 2009 Moved from simpletest to PHPUnit [KrisJordan]
file .htaccess Wed Dec 24 20:51:24 -0800 2008 Final commit before tagging Public Preview??? [KrisJordan]
file MIT-LICENSE Wed Dec 24 18:08:23 -0800 2008 Preparing for Public Preview [KrisJordan]
file README.textile Wed Dec 24 21:14:30 -0800 2008 Final commit for Public Preview! [KrisJordan]
directory apps/ Loading commit data...
file bootstrap.php
directory content/ Wed Dec 24 18:08:23 -0800 2008 Preparing for Public Preview [KrisJordan]
file index.php Thu Dec 25 20:40:47 -0800 2008 Bug fix #1: using index.php in a subdir. [KrisJordan]
file recess-conf.php Wed Dec 24 20:51:24 -0800 2008 Final commit before tagging Public Preview??? [KrisJordan]
directory recess/
README.textile

Recess! PHP Framework

Welcome to the Recess Framework Preview! Let’s have some fun…

Requirements

  • Apache
  • mod_rewrite suggested
  • PHP 5.1 or greater (tested on 5.2.6)

Installation Process

  1. Unzip contents into your web documents path (i.e. public_html)
  2. On a development machine make these directories writeable by PHP:
    1. apps/
    2. recess/temp/
    3. recess/sqlite/
  3. Open recess-conf.php and set RecessConf::$defaultDatabase
    1. If using MySQL: Uncomment the ‘mysql:…’ line and fill in DBNAME/USER/PASS
    2. If using Sqlite: Uncomment the ‘sqlite:…’ line and name the database
  4. Do you have mod_rewrite?
    1. Yes: Open your browser to the location you unzipped
    2. No: Open your browser to the location you unzipped followed by index.php
  5. If you see “Welcome to Recess!” we’re ready to rock.
  6. The URL you are currently at will be referenced {$installUrl}

Recess Tools Mini-tutorial

  1. Browse to http://{$installUrl}/recess/ (i.e. http://localhost/recess)
  2. Do you see Recess Tools? Good.
  3. Click ‘Database’
    1. Make sure your default database shows up.
  4. Click ‘Apps’ and let’s start a new app
    1. Click ‘Start a New Application’
    2. Human name: My First Recess App
    3. Programmatic name: FirstApp [NEXT]
    4. Url prefix: firstApp/ [NEXT]
    5. Follow instructions to activate your first app.
    6. In a new tab browse to http://{$installUrl}/firstApp/
    7. Do you see a Hello page? Great.
  5. Back in Recess Tools click ‘Apps’
  6. Click on ‘My First Recess App’ – this is your app dashboard.
  7. Click on ‘new’ beside of Models
    1. Name the model Post
    2. Select ‘Table does not exist.’
    3. Add 2 properties:
      1. title => String
      2. body => Text
    4. Click ‘Generate Model’
    5. Click ‘Generate Scaffolding’
    6. In your other tab browse to http://{$installUrl}/firstApp/post
    7. Try creating a new post.
  8. In your editor open the apps dir in your Recess install location.
    1. Poke around in here to get a sense of what Tools just generated.
  9. From here have fun, keep tinkering, and stay tuned to RecessFramework.org

On the Horizon

Following the preview the priorities of Recess are:

  • Tutorials and Documentation (!!!)
  • Forms and Validation (Fairly naive in this preview release.)
  • Friendlier Production-mode Error Pages
  • More REST: Content-negotiation, HEAD, OPTIONS, etc.
  • More powerful Models

Stay tuned, ask questions, and get involved at RecessFramework.org.

Enjoy Recess!

Kris Jordan

http://www.krisjordan.com/

http://www.twitter.com/KrisJordan