/book_pricer

Book pricer is the best app to define your used book's price

Primary LanguageJavaScript

https://travis-ci.org/liogen/book_pricer.svg?branch=develop https://coveralls.io/repos/github/liogen/book_pricer/badge.svg?branch=develop Code Climate

BookPricer

Book pricer is the best app to define your used books price.

Goals of this project

This project focuses on providing an intuitive and complete tools that help you to define your used books price using data available on the https://www.justbooks.fr/ price comparator.

Quick presentation

User interface

In this application, you just have to enter your book's ISBN and you will get a price distribution of the news and used offers available on the Web. The last step for you is to pick up the correct price according to the price distribution and sell on your preferred website.

home page

book information

book price distribution

New book recently searched

Admin presentation

To see the datamodel and the data in DB, go to localhost:8080/admin (book_seller / book_seller_Admin).

admin home page

admin books

admin offers

Installation guide

This project is only available on Ubuntu/Debian. Tested on Ubuntu 16.04.

Packages installation

$ sudo apt-get install python3 python3-dev python-pip sqlite3 supervisor

Virtualenv creation

$ sudo -H pip install virtualenvwrapper
$ mkdir ~/.virtualenvs
$ echo "export WORKON_HOME=~/.virtualenvs" >> ~/.bashrc
$ echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
$ bash
$ mkvirtualenv book_seller --python=/usr/bin/python3
$ workon book_seller

Pip requirements installation

$ pip install -r requirements.txt

Django configuration

$ cd book_seller
$ python manage.py migrate --settings=book_seller.settings.prod
$ python manage.py createsuperuser (book_seller / book_seller_Admin)

Supervisor configuration and run

$ sudo cp supervisor/book_seller.conf /etc/supervisor.conf.d/
$ sudo cp supervisor/justbookcrawler.conf /etc/supervisor.conf.d/
$ sudo supervisorctl reread
$ sudo supervisorctl add book_seller
$ sudo supervisorctl add justbookcrawler
$ sudo supervisorctl start book_seller
$ sudo supervisorctl start justbookcrawler
$ tail -f /tmp/book_seller.log

Scrapy configuration

$ cd ..
$ cd justbookcrawler
$ scrapyd-deploy -l
$ scrapyd-deploy default -p justbookcrawler

Contribute

This project is distributed under the MIT licence.

To test the quality, run this commands :

$ pip install flake8 prospector django_nose behave_django coverage
$ flake8 --exclude "justbookcrawler/build/"
$ prospector -F
$ cd book_seller/
$ coverage run --source='.' manage.py behave --settings=book_seller.settings.test && coverage report -m
$ mv .coverage ../

To fix a bug, open an issue in github and submit a pull request.