Skip to content

stansmith907/mdTranslator-rails

 
 

Repository files navigation

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

About

Rails webservice for mdTranslator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 46.6%
  • HTML 45.1%
  • CSS 6.4%
  • JavaScript 1.2%
  • Other 0.7%