Sample State - rachelmoore/MeowNow GitHub Wiki
{
entities: {
locations: {
1: {
id: 1,
location_name: "Borderlands Books",
address: "866 Valencia St San Francisco, CA 94110",
num_cats: 2,
free: true
},
2: {
id: 2,
location_name: "KitTea Cat Cafe",
address: "96 Gough St San Francisco, CA 94102",
num_cats: 11,
free: false
},
3: {
location_name: "Fredricksen Hardware & Paint",
address: "3029 Fillmore St San Francisco, CA 94123",
num_cats: 2,
free: true
}
},
cats: {
11: {
id: 11,
location_id: 12,
img_url: "http://meownow.io/cats/12/otis.jpg"
}
23: {
id: 23,
location_id: 2,
img_url: "http://meownow.io/cats/2/fluffy.jpg",
}
},
reviews: {
38: {
id: 38,
user_id: 11,
location_id: 1,
title: "Free Sphynx!!",
body: "It's hard to find these rare cats anywhere.",
rating: 5
}
42: {
id: 42,
user_id: 9,
location_id: 7,
title: "Lies upon lies",
body: "There were no cats here, or if they were they were hiding.",
rating: 2
}
},
ui: {
loading: true/false
},
errors: {
login: ["Incorrect username/password combination"],
reviewForm: ["Review body cannot be blank"],
},
session: {
currentUser: {
id: 23,
username: "caitlyn1996",
display_name: "Caitlyn S.",
email: "[email protected]",
bio: "KitTea regular and cat enthusiast."
}
}
}