Skip to content
Simple request logger app written in Sinatra. Uses MongDB with Mongoid gem and will paginate gem
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
db/migrate
models
views
.gitignore
Gemfile
Gemfile.lock
README.textile
Rakefile
application.rb
config.ru

README.textile

Simple HTTP request logger app written in Sinatra

This app written to compare MongoDB with Mongoid gem and MySQL with mysql2 gem. Also used framework agnostic will-paginate.

$ bundle install
$ bundle exec rake db:migrate
$ bundle exec rackup

Note that you have to create the database manually, because I don’t have a rake task for that.

Available routes

  • /mongo/list – List all Mongo records.
  • /mongo/create – Create a record in MongoDB. You can pass “qtt” param to create more then one record per request.
  • /mysql/list – List all MySQL records.
  • /mysql/create – Create a record in MySQL db. You can pass “qtt” param to create more then one record per request.
Something went wrong with that request. Please try again.