paveltyk / sinatra-request-logger

Simple request logger app written in Sinatra. Uses MongDB with Mongoid gem and will paginate gem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Simple request logger app written in Sinatra. Uses MongDB with Mongoid gem and will paginate gem


Languages

Language:Ruby 100.0%