Sample State - MLT-NYC/mxpx GitHub Wiki

Sample State

{
    entities: {
        users: {
            1: {
                id: 1,
                username: "PXLPRFCT",
                name: "Cindy Sherman",
                pictureIds: [1, 2, 3, 4, 5],
                followerIds: [2, 3, 4, 5, 6, 7, 8, 9],
                followeeIds: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
                likedPictureIds: [1, 2, 3, 4],
                authoredCommentIds: [1, 2, 3, 4, 5]
            },
            347: {
                id: 347,
                username: "LetsBeFrank",
                name: "Robert Frank",
                pictureIds: [345, 346, 347, 348, 349],
                followerIds: [49, 23, 4, 712, 48, 91, 128, 50],
                followeeIds: [56, 24, 5, 713, 12, 88, 127, 51],
                likedPictureIds: [345, 7564, 134, 534],
                authoredCommentIds: [6, 7, 8]
            }
        },
        pictures: {
            1: {
                id: 1,
                photographerId: 33,
                imgUrl: "https://mxpx.com/picture/33/Homerun-cheers",
                title: "Homerun cheers",
                description: "Crowd cheers as Mets win!",
                likerIds: [2, 3, 4, 6],
                numLikes: 4,
                commentIds: [3, 56, 98, 100]

            },
            12: {
                id: 12,
                photographer_id: 845,
                imgUrl: "https://mxpx.com/picture/12/Worst-game-ever",
                title: "Worst game ever",
                description: "Can't believe we lost to the Mets...",
                likerIds: [10, 13, 15, 17],
                numLikes: 4,
                commentIds: [101, 102, 103, 104]

            }
        },
        comments: {
            1: {
                id: 1,
                authorId: 3,
                pictureId: 1,
                body: "Marvelous!"

            },
            2: {
                id: 2,
                authorId: 1,
                pictureId: 9,
                body: "I love cats!"

            }
        }
    },

    ui: {
        loading: true / false
    },
    errors: {
        session: ["Incorrect username/password"],
        pictureForm: ["Please fill all required fields"],
        commentForm: ["Please fill all required fields"]
    },
    session: {
        currentUserId: 11235
    }
}