Skip to content

Library-Distribution/ALD-sinatra

Repository files navigation

ALD-sinatra

Coverage Status Build Status Code Climate Gemnasium

About

An incomplete implementation of an ALD server, based on Ruby and Sinatra. It runs on a Heroku server at http://libba.herokuapp.com.

Dependencies

Tests

Development

Ruby

ALD-sinatra is developed, tested and deployed on Ruby 2.0.0. Earlier versions will very likely fail.

Installation and Setup

Follow these simple steps:

# Make sure you run Ruby >= 2.0.0, e.g. with:
# rvm use 2.0.0

git clone https://github.com/Library-Distribution/ALD-sinatra.git # clone the repo

cd ALD-sinatra
bundle install # install dependencies

# Make sure postgreSQL 9.3+ is installed.
# See the instructions on <http://www.postgresql.org/download/>

rake db:setup # configure database etc.
# To automate this step, run: [sudo] rake db:setup DB_SETUP=true DB_USER=<user> DB_PASSWORD=<password> DB_DATABASE=<name> [DB_PORT=<port> DB_HOST=<host>]
# User, password and database can be set interactively. If you want to change the port (defaults to 5432) or the host (defaults to localhost), you must set it as seen above.

foreman start # start the app

To test if all is well, open your browser and go to localhost:5000/version (or whatever port foreman tells you) and see if you get the server version.

Contributions

Any pull requests or issue reports are welcome.

About

an incomplete reimplementation of the ALD server with ruby and sinatra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages