Skip to content

Sivious/whiskyton

 
 

Repository files navigation

Whiskython

About

This web based app uses an open database about whisky to help you find whiskys you'd probably like. It uses mathematics to run through the tastes classified in that database, and to find the best matches. We were inspired by this data visualization shared on Reddit.

What really matters

This is our very first project in Python (and we are not professional coders) -- so all feedback is important to help us through our learning process. Don't hesitate to criticize our code and software design! To be true, that is what we are expecting :)

Installation

  1. Get your virtualenv and PostgreSQL running.

  2. Install the dependencies: $ pip install -r requirements.txt (If you have any trouble installing psycopg2 I assume it is just normal. I had a couple of them. I recommend instaling it from the source.)

  3. The code is set to use SQLite locally. If you're using PostgreSQL instead, you might need to create the Whiskyton database $ sudo -u postgres createdb whiskyton (It is a good time to check if the PostgreSQL user and password are correct in the config.py file.)

  4. If you already have an old version of Whiskython database, drop it $ ./db_drop_tables.py

  5. Then run the following commands (you might have to give the right permissions to each file by typing chmod a+x [filename], otherwise you won't be able to execute them):

$ ./db_create.py
$ ./db_migrate.py
$ ./db_add_whisky_data.py
$ ./db_add_correlations.py

Finally ./run.py to start your server.

If you want to get rid of an older version of the cache for SVG charts, just run ./clean_chart_cache.py.

Thanks

We had a lot of Python teachers, we are so glad we could count on you, guys:

In sum, we had the best teachers of the world in Python. Any mistake here is completely our fault.

License

Copyright (c) 2014 Eduardo Cuducos and Gabriel Vicente

Licensed under the MIT license (see MIT-LICENSE file)

About

Whiskyton, find whiskies that you like!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published