sample state - laamp/giftable-rails GitHub Wiki
Sample State
{
entities: {
users: {
1: {
id: 1,
name: "John",
email: "[email protected]",
passwordDigest: "...",
sessionToken: "...",
profileImg: "http://images.com/some-image-url.png"
}
},
lists: {
1: {
id: 1,
title: "Xmas 2020",
eventDate: "December 25th, 2020",
owner_id: 1
}
},
gifts: {
1: {
id: 1,
description: "Wool socks",
gift_img: "...",
purchased: true,
creator_id: 1,
recipient_id: 1,
list_id: 1
}
},
errors: {
user: [ "Incorrect login credentials" ],
list: [ "List cannot be retrieved at this time" ],
gift: [ "Gift no longer exists" ]
},
session: {
currentUser: 1,
currentList: 1
}
}
}