Sample State - SouVangLee/FishNGames GitHub Wiki

{
  entities: {

    users: {
      1: {
        name: "Aang",
        email: [email protected]
      },

      2: {
        name: "Zuko",
        email: [email protected]
      }
    },

    products: {
      227: {
        id: 227,
        name: "G. Loomis E6X Spinning Rod",
        price: 230.99,
        quantity: 15,
        description: "A fishing rod that is lightweight and easy to use. Excellent for jigs, worms and dropshots.",
        categoryId: 1,
        reviews: [4, 22, 7, 99]
      }, 

      115: {
        id: 115,
        name: "Ascend Orion 2-Person Backpacking Tent",
        price: 70,
        quantity: 10,
        description: "Ascend Orion tent is lightweight, easy to carry, and easy to set up.",
        categoryId: 2,
        reviews: [15, 28, 57, 31]
      } 
    },

    reviews: {
      10: {
        id: 10,
        productId: 54,
        reviewerId: 108,
        rating: 4,
        review: "This fishing lure was amazing for fishing!"
      },

      205: {
        id: 205,
        productId: 115,
        reviewerId: 172,
        rating: 2,
        review: "These boots were not comfortable at all!"
      }
    },

    categories: {
      1: {
        id: 1,
        name: "Fishing"
      },

      4: {
        id: 4,
        name: "Clothing"
      }
    },

    cartItems: {
      1: {
        id: 1,
        productId: 92,
        userId: 100,
        quantity: 3
      },

      2: {
        id: 2,
        productId: 107,
        userId: 100,
        quantity: 1
      }
    },

    favorites: {
      4: {
        id: 4,
        favoriteProductId: 106,
        favoriteUserId: 20,
      },

      10: {
        id: 10,
        favoriteProductId: 222,
        favoriteUserId: 701
      }
    }

  },

  session: { currentUserId: 52 },

  ui: { modal: true/false },

  errors: {
    login: ["You have entered in an invalid email and/or password. Please try again."],
    signupForm: ["Please fill out the form completely!", "Password is too short", "Username is taken"],
    review: ["Comment cannot be blank"],
    cart: ["This item is currently out of stock.", "Your cart is currently empty!"]
  }
}