Skip to content

LIBRE = Libre Information Batch Restructuring Engine. The engine that is powering the liberation of government data for the island of Puerto Rico

License

Notifications You must be signed in to change notification settings

Yentzen/libre

 
 

Repository files navigation

LIBRE: Libre Information Batch Restructuring Engine

https://travis-ci.org/commonwealth-of-puerto-rico/libre.png?branch=master https://coveralls.io/repos/commonwealth-of-puerto-rico/libre/badge.png?branch=master https://badge.fury.io/py/libre.png https://pypip.in/d/libre/badge.png

The engine that's powering the liberation of government data for the island of Puerto Rico.

Created by the Office of the Chief Information Officer of the Commonwealth of Puerto Rico

https://raw.github.com/commonwealth-of-puerto-rico/libre/master/docs/_static/libre_logo.png

https://raw.github.com/commonwealth-of-puerto-rico/libre/master/docs/_static/main_diagram.png

Turn this:

https://raw.github.com/commonwealth-of-puerto-rico/libre/master/docs/_static/before.png

Into this!

https://raw.github.com/commonwealth-of-puerto-rico/libre/master/docs/_static/after.png

Query your data afterwards too!

https://raw.github.com/commonwealth-of-puerto-rico/libre/master/docs/_static/math_query.png

Links

Installation

OS dependencies

LIBRE supports Spatial queries as such is dependant on several libraries that are installed at the OS level.

If using Ubuntu Linux install the required libraries with:

$ sudo apt-get install libgdal-dev -y

On OSX using MacPorts:

$ sudo port install geos
$ sudo port install gdal

Proceed to install the actual files of LIBRE:

Using pip

Via pip Python packager installer

$ pip install libre
$ libre-admin.py syncdb --migrate
$ cat <<'EOF' > settings_local.py
DEBUG=True
DEVELOPMENT=True
EOF
$ libre-admin.py runserver --pythonpath=.

From GitHub

By cloning the code from the GitHub repository:

$ git clone https://github.com/commonwealth-of-puerto-rico/libre.git
$ cd libre
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r libre/requirements.txt
$ ./manage.py syncdb --migrate
$ cat <<'EOF' > settings_local.py
DEBUG=True
DEVELOPMENT=True
EOF
$ ./manage.py runserver

Docker container

Or by using Yamir Encarnacion's Docker container:

Use this to build a new image, tagged for easier reuse

$ sudo docker build -t yencarnacion/libre-docker github.com/yencarnacion/libre-docker

Running the container

$ sudo docker run -d -p 8000:8000 yencarnacion/libre-docker

The default username and password for the Docker image are: Username: admin | Password: libre

Once up and running go to <your ip>:8000 in your browser to use LIBRE.

https://d2weczhvl823v0.cloudfront.net/commonwealth-of-puerto-rico/libre/trend.png

About

LIBRE = Libre Information Batch Restructuring Engine. The engine that is powering the liberation of government data for the island of Puerto Rico

Resources

License

Stars

Watchers

Forks

Packages

No packages published