Skip to content

Node app, utilizing the yelp API to find the best pizza, coffee, or bagels nearby a user.

Notifications You must be signed in to change notification settings

andrewsouthard1/pizza_coffee_bagels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pizza Coffee Bagels

Pizza Coffee Bagels brings a simple answer to a simple question, where are the best 3 pizza, coffee, or bagel establishments nearby? Pizza Coffee Bagels uses the Yelp API, to provide users a no-nonsense listing of the top spots.

Motivation

Living in New York City, the options for pizza, coffee, and bagels are endless, so I wanted to build an app that provides only the top places.

Tech/framework used

Built with

Screenshots

alt text

Features

  • Provides the top 3 locations for either pizza, coffee or bagels
  • Custom designed Bagel icon with InkScape
  • Uses jQuery hide/remove options

Code Example

**Making an API call to Yelp for best pizza

  app.get("/pizza", function(req, res){
      yelp.search({ term: "best slice of pizza", location: req.query.address, sort: 0 && 2, 
      limit: 3, radius_filter: 1000})
      .then(function(data){
          res.render("pizza", {data: data});
      })
      .catch(function (){
          res.render("error")
      })
  });

**Using jQuery to remove bagel/coffee icons after selecting pizza

  $("#pizzaPic").on("click", function(){
    $("#bagelPic").remove();
    $("#coffeePic").remove();
    $("#coffeeForm").remove();
    $("#bagelForm").remove();
    $(this).removeClass('col-md-4 col-sm-4');
    $("#pizzaForm").fadeIn(1000);
    $("#backLink").fadeIn(1000);
  });

About

Node app, utilizing the yelp API to find the best pizza, coffee, or bagels nearby a user.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published