GithubHelp home page GithubHelp logo

live-chair's People

Contributors

eddiem3 avatar ikalu avatar sakshyamdahal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

live-chair's Issues

Barber Format

Can we make it so that we only have to make one get request for information about a barber. As in viewing information about a particular barber produce would something like...

 [{
      "id": "1"
      "fname": "Bob",
      "lname": "The Builder" 
      "stars": "5",

      "reviews": [{
        "rating": 5,
        "body": "I love this cut!",
        "author": "[email protected]",
        "createdOn": 1397490980837
      }, {
        "rating": 1,
        "body": "This guy sucks.",
        "author": "[email protected]",
        "createdOn": 1397490980837
      }]

      "profile": [{
        "sname": "Bob Cutz",
        "address": "123 Street Ave"
        "city": "Orangeburg"
        "state": "SC"
        "zip": "29115"
        "avatar": "barber1.jpg"
        "stars":"5",
        "skills": [fades, travis porter, eye brows, twists]




      }]
 }

And the same for a list of barbers.

How do I fix this?

Why am I getting nil comment, nil rating and nil user_id for _review.html.rrb partial when I display the reviews for the profile that I am one and also while we display that on json through Profile controller show action. What's wrong?

Barber and Client models

Hey guys,

I think we should have a model for the barber and a model for the client and relate a an appointment between a barber and a client via a has many through relationship. To me it'll be easier to keep track of appointments this way.

User model

How does a phone number attribute for the user model sound? coz so far we have Name, email, password.

What is the full user story for payments?

What does charging look like for a barber?
What does paying look like for a client?
What does receiving a payment look like for a barber?
What does receipt look like for a client?
What does payment confirmation look like for a barber?

Does a barber have an overall rating?

I have a stars feature on the front-end. Do we already have an overall rating by which I can generate a number of stars from?

Right now for the app I made dummy data that looks like this

 {
              fname: 'John',
              lname: 'Doe',
              avatar: '../img/barber3.jpg',
              shop_name: 'True',
              address: '123 Street Ave.',
              city: 'Cleveland',
              state:'OH',
              zip: '44106',
              rating: '2'
  }

I grab the overall 'rating' from the barber and generate the number of stars to make

Need a quick fix for this

with this api call https://fathomless-temple-1065.herokuapp.com/api/v1/users/barbers

you get a json response that looks like:

[
{
user: {
id: 1,
fname: "Sam",
lname: "Wan"
}
},
{
user: {
id: 2,
fname: "Ik",
lname: "Tu"
}
},
{
user: {
id: 3,
fname: "Md",
lname: "Trih"
}
},
{
user: {
id: 5,
fname: "Ed",
lname: "Fur"
}
}
]

all i want is instead of user 'id' return the profile 'id' without changing anything for the same api call.

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.