CONCOCT is a web app for creating custom cocktail recipes, demonstrating object-oriented programming with Ruby and databases with PostgreSQL/ActiveRecord.
- Create custom cocktail recipes by selecting various complimentary liquors and ingredients, setting the drink strength, the sweetness/tartness level, and naming it.
- A custom recipe for the cocktail with the correct proportions of each liquor and ingredient is generated based on user specifications.
- Rate cocktails.
- Browse through cocktails by theme, ingredient, or rating
- Styling changes based on the theme values of ingredients in a cocktail.
- View list of ingredients, cocktails, and drink categories that have been saved to the database.
- Add a new ingredient, and choose what other ingredients it pairs well with.
- Assign categories that ingredient falls into (primary liquor, secondary liquor, mixer, etc.).
- Assign point values towards themes that the ingredient represents (winter, classy, brunch, tropical etc.).
- Edited and delete ingredients, cocktails.
Ruby, HTML, CSS, JavaScript/jQuery, PostgreSQL, ActiveRecord, rspec, capybara, sinatra.
Make sure PostgreSQL is installed, and then clone this repository.
Run postgres
and psql
.
Navigate in terminal to project directory.
Type bundle install
to ensure all Ruby gems and dependencies are installed.
rake db:create
rake db:migrate
rake db:test:prepare
In psql
:
concoct_development < concoct.sql
concoct_test < concoct.sql
Navigate in terminal to project directory.
rake db:migrate
rake db:test:prepare
ruby app.rb
Copyright (c) 2016 Krystan Menne
This software is licensed under the MIT license.