https://github.com/gitkrystan/concoct
Ruby/Sinatra app that generates custom cocktail recipes based on user preferences and pre-vetted ingredient combinations.
https://github.com/gitkrystan/concoct
Last synced: 3 months ago
JSON representation
Ruby/Sinatra app that generates custom cocktail recipes based on user preferences and pre-vetted ingredient combinations.
- Host: GitHub
- URL: https://github.com/gitkrystan/concoct
- Owner: gitKrystan
- Created: 2016-02-01T17:52:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T04:22:07.000Z (over 9 years ago)
- Last Synced: 2024-10-09T12:32:01.498Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 123 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CONCOCT
##### Feb. 5th, 2016 - Ruby - Group Project for Epicodus
##### By - [Krystan Menne](https://github.com/gitKrystan), [Lauryn Davis](https://github.com/lryndavis), [Jeff Seymour](https://github.com/jeffsdev), [Mike Mahoney](https://github.com/Mahonmr)## Description
###### CONCOCT is a web app for creating custom cocktail recipes, demonstrating object-oriented programming with Ruby and databases with PostgreSQL/ActiveRecord.## Features
###### User-side:
* 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.###### Admin-side ( /admin - in the URL ):
* 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.## Technologies Used
Ruby, HTML, CSS, JavaScript/jQuery, PostgreSQL, ActiveRecord, rspec, capybara, sinatra.## Setup
#### Initial Steps
Make sure PostgreSQL is installed, and then clone this repository.
Run `postgres` and `psql`.
#### Create Database
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
```
#### Import Sample Data
In `psql`:
```
concoct_development < concoct.sql
concoct_test < concoct.sql
```
#### Start App
Navigate in terminal to project directory.
```
rake db:migrate
rake db:test:prepare
ruby app.rb
```## License
Copyright (c) 2016 Krystan Menne
This software is licensed under the MIT license.