absolute.gem
What is absolute.gem
Absolute provides a boilerplate near zero config base layer for web applications
Including:
- Login and authentication integration
- Registration and subscription services
Why?
Becase we dont like doing things 2wice.
Absolute has only just begun
The current version only does this:
install absolute gem
gem install absolute
Experiment 1
make a Rack (usually config.ru
) file with:
require 'absolute' Absolute::post_received do |data| # # data is the post body # puts "\n\nDID YOU: #{data}\n\n" end run Absolute::App
start the rack (up)
rackup config.ru
post a spot of json
curl -i -X POST -d '{"c":"this"}' http://localhost:9292