No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
browser Add features to admin to allow product editing Aug 9, 2018
database database postgres Apr 8, 2016
docs init Apr 8, 2016
opd init Apr 8, 2016
scripts init Apr 8, 2016
static init Apr 8, 2016
.gitignore init Apr 8, 2016
Procfile init Apr 8, 2016
README.md init Apr 8, 2016
manage.py Add features to admin to allow product editing Aug 9, 2018
requirements.txt Bump psycopg2-binary for Heroku db compatibility Aug 9, 2018

README.md

Description

This website aims to browse Open Product Data (OPD) database.

Open Product Data is a project of [Open Knowledge Foundation Open Product Data] 1.

Installation

Development environment

Prerequisites

Mandatory :

  • [Python 3.5.1] 2
  • [Django 1.9.2] 3
  • [mysqlclient 1.3.7] 4
  • [Django REST framework 3] 5

Optionnal :

  • [VirtualEnvWrapper 3.7+] 8

Development environment (Docker)

  • Make sure you have a running Docker setup (including Docker Compose). For an easy setup, have a look at the Docker Toolbox.
  • git clone https://github.com/okfn/opd-product-browser-web.git
  • cd opd-product-browser-web
  • docker create -v /var/lib/postgresql --name opd_postgres_data postgres:9.4 /bin/true
  • docker-compose up -d db
  • docker exec opdproductbrowserweb_db_1 createdb -Upostgres opd
  • docker-compose up -d
  • Open port 18080 on your Docker host in a web browser. If you're using the Docker Toolbox, this should be http://192.168.99.100:18080/

Production environment

  • docker create -v /var/lib/postgresql --name opd_postgres_data postgres:9.4 /bin/true
  • docker-compose -f docker-compose.prod.yml up -d db
  • docker exec opdproductbrowserweb_db_1 createdb -Upostgres opd
  • docker-compose -f docker-compose.prod.yml up -d