Skip to content

Sample State

Sokada101 edited this page Apr 3, 2020 · 6 revisions
    entities : {
        users: {
         1: {
           id: 1, 
           email: demoUser1@gmail.com
           videoIds: [1,2]
          }
         2: {
           id: 2, 
           email: demoUser2@gmail.com
           videoIds: [1,2,3]
          }
         }
        videos : {
           id: 1,
           title: 'Catward'
                description: Two cat sisters 
                embark on a quest to bring 
                their father back for one day.
           duration: 120
           year: 2019 
           views: 1000
           genreIds: [1,2,3]
        },
        genres : {
           1: {
           id: 1,
           name: "action",
           videoIds: [2,3]
           },
           2: {
           id: 2,
           name: "adventure",
           videoIds: [1,2]
           },
           3: {
            id: 3,
            name: "comedy",
            videoIds: [3]
           },
           4: {
            id: 4,
            name: "thriller"
            videoIds: []
           },
           5: {
            id: 5,
            name: "romance",
            videoIds: [1,2,3]
           },
           6: {
            id: 6,
            name: "sci-fi",
            videoIds: [1,2,3]
            },
      }
      profiles: 
            1: {
                id: 2,
                name: "CatLover",
                listvideoId: [1,2]
            },
            2: {
                id: 12,
                name: "CatLover's hubby",
                listvideoId: [2,3]
            }
    },
    ui : {
        loading : false,
        modal : "login_screen",
    },
    session : {
      currentUser : 1,
    },
    errors: {
      logIn: ["Invalid username/password credentials"],
      signUp: ["Password must be at least 6 characters long"]
    },
}
Clone this wiki locally