Rails webservice for mdTranslator
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
vendor/assets
.gitignore
Dockerfile
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
README.rdoc
Rakefile
config.ru

README.md

mdTranslator-rails

Rails API for mdTranslator: mdtranslator.adiwg.org

Environment Confguration for use with RVM (Debian Jessie or Ubuntu 16.04 or greater)

Assumes rvm is installed

run rvm script first time if needed, but should be in .bash_profile (or equivilant)

source $HOME/.rvm/scripts/rvm

install the correct ruby, in this case 2.1.10 (see Gemfile)

rvm install 2.1.10 rvm use 2.1.10

install the bundler (if needed)

gem install bundler

install gems needed

bundle install

OPTIONAL for production - set SECRET_KEY_BASE environment variable##

export SECRET_KEY_BASE=[your secret key base]

see http://stackoverflow.com/questions/23180650/how-to-solve-error-missing-secret-key-base-for-production-environment-rai or other resources

run application

rails server

Browse to web app

http://localhost:3000

Click on "demo" link to do some metadata translations

Bonus! Forget all that and just run a Docker

docker run -d -p 3000:3000 derekjwilliams/mdtranslator-rails:latest