GithubHelp home page GithubHelp logo

law-apps's Introduction

#Law Apps

Improving the library e-resources interface, starting with the Law School

Installation

elasticsearch

Law Apps uses elasticsearch to index library e-resources items.

Download it and install it:

http://www.elasticsearch.org/

Once installed, be sure to start elasticsearch:

/etc/init.d/elasticsearch start

You'll also want to create a basic mapping for our item index:

curl -XPUT 'http://localhost:9200/law-apps-matt/' -d '{
    "settings" : {
        "index" : {
            "number_of_shards" : 1,
            "number_of_replicas" : 2
        }
    },
	"mappings" : {
	    "item" : {
	        "properties" : {
	            "category" : {
	                "type" : "multi_field",
	                "fields" : {
	                    "category" : {"type" : "string", "index" : "analyzed"},
	                    "category_raw" : {"type" : "string", "index" : "not_analyzed"}
	                }
	            }
	        }
	    }
	}
}'

PHP and the web server

Law Apps Box is written in PHP. PHP 5.3 or later is recommended.

Serving up ShelfLife in Apache is probably the easiest way to get started. ShelfLife relies on rewrite rules in .htaccess. Be sure you're allowing for .htaccess in your httpd configuration and that you have mod_php and mod_rewrite installed.

wkhtmltopdf

wkhtml2pdf helps us build thumbnails of our e-resources.

If you're on Redhat/CentOS, you can yum install wkhtmltopdf using this method

ImageMagick and the convert command line utility

ImageMagick also helps us build thumbnails of our e-resources.

ImageMagick is pretty common and is likely available as a package for your system.

Getting the source

Head on over to your web document root (in our Apache instance, we use /var/www/html) and use the git clone command to get the latest version of Law Apps:

cd /var/www/html
git clone https://github.com/harvard-lil/las-apps.git

Configure

You should now have Law Apps installed. Let's configure it.

cd /var/www/html/law-apps/etc
cp master.ini.example to master.ini

Edit the master.cfg config file with the keys and paths that we've created in the instructions above.

Setup .htaccess

We use a .htaccess to route requests in the Law Apps interface. An example is supplied, just copy it.

cd /var/www/html/awesome/
cp .htaccess.example .htaccess

Success

If things are working correctly you should be able see Law Apps at http://yourhost/awesome/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.