mkristian / dhammapada

api server for dhammapada translations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ixtlan-translations

  • Build Status - pending no tests yet
  • Dependency Status
  • Code Climate

getting started - developement

install your gems

bundle install

get the development database in place

rake db:automigrate db:seed

start rackup

rackup

or shotgun

shutgun

for faster startup (only unix like OS) setup your load_path from the Gemfile.lock which is used by bin/run_ruby (without bundler startup)

bin/gemfile_to_bin_load_path

now use the run-ruby script

bin/run_ruby -S rackup

or shutgun

bin/run_ruby -S shotgun

URLs

both translators complete

only Max Müller's version

chapter 3 of John Richard's translaton

verse 333 from Max Müller

random verse from either translator

note1: onle json and yaml output is supported (did not find a suitable xml library for providing Hash to XML conversion - ActiveSupport feels to big for such a thing)

note2: extension will take preference before Accept header.

note3: there is not dhammapada.json or dhammapada.yaml !!

Password protected part

password for development

running on localhost allows to login with an empty password and the following sernames:

  • root
  • guest

passwords with external authentication

using authentication from ixtlan-users you need to start that server first:

cd ../ixtlan-users
rails s

in another terminal start you application with

cd ../ixtlan-translatons
SSO=true bin/run-ruby -S rackup

for the password just use password forgotten and look out for the email text in the ixtlan-users console. there you will find a new password :)

URL

before login without cookie

after login with cookie

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

meta-fu

enjoy :)

About

api server for dhammapada translations


Languages

Language:Ruby 98.7%Language:Shell 1.3%