ReST in Peace
Minimal web framework with a focus on simplicity. Powered by Sinatra and DataMapper.
Setup
Get the Gem
gem install rest_in_peace
Getting Started
-
Generate the project skeleton rip blogger
-
Move into the project directory cd blogger
-
Generate model and controller script/define Post title:string body:string has_many:comments
-
Add nested resources script/define Comment body:string belongs_to:post
To Deploy To The Cloud
- Deploy to Heroku script/cloud
For Local Development
-
Migrate database script/migrate
-
Start server script/server
-
Browse to http://localhost:4567/post