Git Product home page Git Product logo

labs-opd's Introduction

Notice

This repository is archived. For an alternative, check Brocade.io

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

labs-opd's People

Contributors

amercader avatar avdata99 avatar brew avatar philippeplagnol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

labs-opd's Issues

I tried to use the website and crashed it.

I was using a bar-code reader (for fun) and tried it on the search box with an ESBN (I think) from the back of a book. Specifically, 058489720300299500000017

It proceeded to crash. Attached, find the HTML document that resulted (since GitHub doesn't like raw HTML apparently)

DEBUG=True in the django settings managed to output what may be some useful information. May not be the best thing to have on a live website though.

DataError.html.zip

Is the project maintained?

I just would like to ask if the project is still maintained and the database updated? Seems like the last activities are from 2 years ago.

Thanks for the great tool btw!

When product is not found, display add product form

When a user enters a valid GTIN-13 code but the product is not in the database, display a form so that the user can manually enter the product data. This data can be tagged "unverified" if necessary and possible with other metadata such as the user who entered it, the date created, etc... This would be enormously useful as it would help improve the number of products in the database.

Issues remaining

To be split out into proper issues:

Debug mode is on

Guys, your project looks really great and I am so glad I found it, but I think you've got a serious security issue: the debug mode is on.
Also, I tried to use your search input with data "50001125576642", but it showed me a full error stack. Please, turn off the debug mode, so any user won't see any sensitive data anymore
image

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.