Skip to content

zdavatz/oddb.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oddb.org

Description

Open Drug Database for Switzerland. See the live version at http://ch.oddb.org

Features/Problems

  • Some email-Addresses are still hardcoded. That needs to be fixed and placed into etc/oddb.yml
  • If you install oddb.org via gem please also see these instructions.

Requirements

  • git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
  • rbenv install 3.1.0
  • sudo apt-get install apache2 daemontools daemontools-run pkg-config libmagickwand-dev libpq-dev
  • bzcat 22:00-postgresql_database-ch_oddb-backup.bz2 | su -c psql -l postgres -p 5433 ch_odd
  • see Guide.txt

Useful commands

Reparse compositions of 5 digit Swissmedic Numbers (issue #139)

sudo -u apache bundle-300 exec ruby-300 jobs/import_swissmedic_only update_compositions 67685 60134

Reparse all compositions

sudo -u apache bundle-300 exec ruby-300 jobs/import_swissmedic_only update_compositions

Check all packages

sudo -u apache bundle-300 exec ruby-300 jobs/import_swissmedic_only check

Tests

  • to run the Tests you need to do

    • bundle install
    • rake test
    • bundle exec rake spec/parslet_spec.rb # for parsing the compositions
    • look at the index.html in the coverage directory
  • There are some Selenium/Watir based GUI integration tests. For details on how to use them have a look at tests_watir.textile

  • There is test/wrk_performance.lua allows a stress test with a typical load. See test/wrk_performance.lua for details on howto run it

Local Documentation

  • To build your local documentation do:
    • rdoc1.9 --op documentation

Install

  • sudo gem install oddb.org

Developers

French Translation Help

License

oddb.org

  • GPLv3.0

Dojo Toolkit

  • Licensed under the MIT license ** doc/resources/javascript/qrcode.js

Trademarks

The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED

Issues

For Issues please open one on Github.