An incomplete implementation of an ALD server, based on Ruby and Sinatra. It runs on a Heroku server at http://libba.herokuapp.com.
- Sinatra, running on Thin
- ActiveRecord, pg and ar_pg_array, for database access
- Liquid and Haml templating engines
- ALD for package analysis
ALD-sinatra is developed, tested and deployed on Ruby 2.0.0. Earlier versions will very likely fail.
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.
Any pull requests or issue reports are welcome.