Coder Social home page Coder Social logo

sinatra-project-dumbo-web-060319's Introduction

Sinatra Mini-Project

Time for another mini-project. Using the Yelp API, build a Sinatra web-app that allows you to add users and restaurants to your database and then choose which users want to visit which restaurant.

Functionality

Watch the below clip to see basic functionality of app.

  • A user should be able to add a new user
  • A user should be able to see all other users
  • A user should be able to add a restaurant
  • A user should be able to select a user and add it to a restaurant's list of users

Domain Modeling

  • What's the relationship between a user and a restaurant?
  • What models and controllers will you need?
  • Break up the controllers based on their responsibility

Requests

  • What type of requests will you use to create a new user and restaurant?
  • What about seeing all users/restaurants and seeing individual users/restaurants?
  • In notes.md, write each type of request, the controller it hits, and action that deals with the request

When you've successfully built out an app that allows you to add a restaurant manually, add the Yelp API feature. We've included the Yelp gem. You'll need to login to get unique tokens at https://www.yelp.com/developers/documentation/v3

Using the adapter pattern, allow your users to hit the API and get restaurant objects returned. Once your adapter pattern is working effectively, feel free to tool around with the API.

To use the API, you'll need an api key from Yelp. Follow the instructions provided by Yelp and place your api key in a file named config/api_key.rb as the variable API_KEY. Do not commit this file!

To make requests with the api, follow the instructions provided by the gem project here

sinatra-project-dumbo-web-060319's People

Contributors

lizbur10 avatar samnags avatar dependabot[bot] avatar maxwellbenton avatar notnotdrew avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.