Skip to content

alex-latham/knead_recipes

Repository files navigation

Knead Recipies Logo

Live App Available At Knead Recipes App

Quick Links

About

Knead Recipes is an app designed to take the hassle and confusion out of what’s for dinner. All you need to do is enter the ingredients you have on hand, and our app will return a list of recipes you can make, or only recipes where you only need a few more ingredients. Knead Recipes is built to account for many dietary restrictions such as vegetarian, vegan, ketogenic, gluten free, and dairy free. This web app is built on Rails 5.1.7 and ruby 2.5.3. All API calls are encapsulated in a Sinatra based micro service that communicates with the main rails app. Front end design created using Bootstrap 3.

Schema

DBSchema

Features

Sign in using Google

Landing Page Google Sign in

Set up user profile

From this page we can edit a user's profile information, such as username, profile picture and set default dietary restrictions Profile Edit

Search for recipes by entering in your ingredients and optional parameters

Search Page

Recipe Index reflects your search parameters, otherwise it'll generate 12 random recipes.

Recipe Index

Recipe Show

This page has all information about a recipe, as well as the ability to favorite and share Recipe Show

Favorite Recipes

Favorite Index

Add Friends and Share Recipes through email

Friends Index

View other users profile pages

Friends Show

Installing

Clone Main repository:

$ git clone https://github.com/alex-latham/knead_recipes

Clone Microservice repository:

$ git clone https://github.com/alex-latham/knead_recipes_microservice.git

Setup

Navigate into directories seperatly:

$ cd knead_recipes
$ cd knead_recipes_microservice

Install gems in microservice and main app:

Run on each

$ bundle install

Configure Main App

$ rake db:{create,migrate,seed}
$ bundle exec figaro install
$ bundle exec sidekiq -C config/sidekiq.yml
$ redis-server

Insert into config/application.yml

MICROSERVICE_URL: http://localhost:9393
GOOGLE_CLIENT_ID: YOUR GOOGLE CLIENT UD
GOOGLE_CLIENT_SECRET: YOUR GOOGLE CLIENT SECRET ID

Configure Microservice:

Get a Spoonacular key from Spoonacular Create var.env in root microservice directory Insert Spoonacular API key into var.env

SPOONACULAR_KEY=<YOUR API KEY>

Run test suite in main app:

$ rspec

Run test suite in microservice:

$ ruby spec/requests/spoonacular_spec.rb

Launch Microservice:

$ bundle exec shotgun

Launch Main app:

$ rails s

Enjoy App Locally:

Visit localhost in your Browser

localhost:3000

Developers

Fred Rondina

Alex Latham

Mike Hernandez

David Tran

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •