Welcome to the Recess PHP Framework! Let’s have some fun…
- Apache
- mod_rewrite suggested
- PHP 5.2.3 or greater
- Unzip contents into your web documents path (i.e. public_html)
- On a development machine make these directories writeable by PHP:
- apps/
- data/temp/
- data/sqlite/
- Open recess-conf.php and set RecessConf::$defaultDatabase
- If using MySQL: Uncomment the ‘mysql:…’ line and fill in DBNAME/USER/PASS
- If using Sqlite: Uncomment the ‘sqlite:…’ line and name the database
- Do you have mod_rewrite?
- Yes: Open your browser to the location you unzipped
- No: Open your browser to the location you unzipped followed by index.php
- If you see “Welcome to Recess!” we’re ready to rock.
- The URL you are currently at will be referenced {$installUrl}
- Browse to https://{$installUrl}/recess/ (i.e. https://localhost/recess)
- Do you see Recess Tools? Good.
- Click ‘Database’
- Make sure your default database shows up.
- Click ‘Apps’ and let’s start a new app
- Click ‘Start a New Application’
- Human name: My First Recess App
- Programmatic name: FirstApp [NEXT]
- Url prefix: firstApp/ [NEXT]
- Follow instructions to activate your first app.
- In a new tab browse to https://{$installUrl}/firstApp/
- Do you see a Hello page? Great.
- Back in Recess Tools click ‘Apps’
- Click on ‘My First Recess App’ – this is your app dashboard.
- Click on ‘new’ beside of Models
- Name the model Post
- Select ‘Table does not exist.’
- Add 2 properties:
- title => String
- body => Text
- Click ‘Generate Model’
- Click ‘Generate Scaffolding’
- In your other tab browse to https://{$installUrl}/firstApp/post
- Try creating a new post.
- In your editor open the apps dir in your Recess install location.
- Poke around in here to get a sense of what Tools just generated.
- From here have fun, keep tinkering, and stay tuned to RecessFramework.org
Stay tuned, ask questions, and get involved in the Recess Community:
- IRC: irc.freenode.net #recess
- Mailing List: https://groups.google.com/group/recess-framework
- Github: https://github.com/recess/recess/
- Forum: https://www.recessframework.org/
- Twitter: https://twitter.com/RecessFramework
Enjoy Recess!
Kris Jordan