Sample State - Ajay-Vishwanath/SoundCloud2 GitHub Wiki

Sample State

{

entities: {
    users: {
        1: {
            id: 1
            username: "_Drift",
            email: "[email protected]",
            location: "Oakland, CA"
        },
        2: {
            id: 2
            username: "The Beatles",
            email: "[email protected]",
            location: "Liverpool, UK"
        },
        3: {
            id: 3
            username: "Musiclover55",
            email: "[email protected]",
            location: "Spokane, WA"
        }
    },
    songs: {
        1: {
            id: 1,
            artist_id: 1,
            title: "Biking Home",
            length: 136,
            genre: "lofi hip-hop",
            description: "This is a track I made that samples Clair De Lune."
        },
        2: {
            id: 2,
            artist_id: 2,
            title: "Across the Universe",
            length: 229,
            genre: "psychadelic folk",
            description: "Jai Guru Deva Om."
        },
        3: {
            id: 3,
            artist_id: 3,
            title: "Late Night Beat #25",
            length: 160,
            genre: "house",
            description: ""
        }
    },
    comments: {
        1: {
            id: 2,
            user_id: 56,
            song_id: 2,
            body: "Great track, wow",
            parent_comment_id: null
        },
        1: {
            id: 3,
            user_id: 2,
            song_id: 2,
            body: "Thank you mate",
            parent_comment_id: 2
        },
        1: {
            id: 4,
            user_id: 25,
            song_id: 3,
            body: "Really vibing with this. We should collab. Check your dms",
            parent_comment_id: null
        },
    },
}
ui: {
    loading: true / false,
        songPlaybackProgressBar: percentComplete
},
errors: {
    login: ["Incorrect username or password"],
        songSubmissionForm: ["Song title cannot be blank"],
            commentForm: ["Comment body cannot be blank"]
},
session: { currentUserId: 25 }

}