Minimal web framework with a focus on simplicity. Powered by Sinatra and DataMapper.
Get the Gem
gem install rest_in_peace
-
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
- Deploy to Heroku script/cloud
-
Migrate database script/migrate
-
Start server script/server
-
Browse to http://localhost:4567/post