GithubHelp home page GithubHelp logo

bitemaker's Introduction

Seat Yourself

To do

  • Make restaurant controller methods for edit, update, destroy check the current user before executing.
@restaurant.owner == current_user

Suggestions

Proximity search

I think we already talked about this, but I thought it would help to write it down.

One way we could filter restaurants by area is by creating a table called locations with this structure:

create_table :landmarks do |t|
  t.string :name
end

create_table :distances do |t|
  t.integer :landmark_id
  t.integer :restuarant_id
  t.integer :radius
end

For a given landmark and restaurant, the distances table has an entry with the distance between them, rounded to the nearest km.

This will make it easier for people to select a location from a list and filter by the maximum distance.

Mockup

Main Page

In order from top to bottom:

  1. Sign in / sign up
  2. Make a new reservation form
  • restaurants
  • number of people
  • time
  1. List of promotions/specials
  2. List of restaurants (will be filtered later)

New reservation

After the new reservation form is submitted, if the user is not logged in, they are asked to sign up so the contact information can be added.

Profile Page

Will be done later

Restaurant Page

Details about the restaurant. If the user is logged in, and they are the owner, a list of reservations. Ability to approve or reject them?

Models

Reservation

Fields

  • user_id
  • restaurant_id
  • date/time
  • number of people Associations:
  • belongs_to :user
  • belongs_to :restaurant

Restaurant

  • name
  • address
  • phone
  • picture link
  • description
  • category_id
  • capacity Associations:
  • has_many :users, through: :reservations
  • has_many :reservations

User

  • email
  • name
  • password_digest
  • postal_code

Category

  • name Associations

bitemaker's People

Contributors

adrianpearman avatar ashbt avatar daegren avatar fgelsomini avatar juliehache avatar michaelfagan avatar natalieblack avatar paraprax avatar punsammy avatar quantumduck avatar seanlerner 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.