eddiem3 / live-chair Goto Github PK
View Code? Open in Web Editor NEWWeb app and api for Live Chair
Web app and api for Live Chair
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.
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?
Api needs to store user tokens submitted by the phone sdk
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.
How does a phone number attribute for the user model sound? coz so far we have Name, email, password.
We need to authenticate our api before going MVP
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?
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.