Sample state - saulack/uisge GitHub Wiki

{

entities: {

 users: { 

  1: { id: 1,

      username: "Macleod14",

      email: "[email protected]",

      imgUrl: http://www.images.com/thispareticularusersimage/,

      postIds: [1, 7, 15, 92]
    },

  2:{ id: 2,

      username: "Canceco",

      email: "[email protected]",

      imgUrl: "http://www.images.com/whousesyahoo/",

      postIds: [12, 4, 18, 14]

    }

  },

 `posts`: { 

  3: { id: 3

       body: "Thats yummy in my tummy"

      authorId: 7 

      drinkId: 22 

      rating: 4.7

      imageUrl: "http://www.picsofstuff.com/laphroigisdelicious"

      location: "Kingston hall, New York, NY"

      rating: 4.5,

     },

12: { id: 12

      body: "thats one smokey meatball"

      authorId: 2 

      drinkId: 13 

      rating: 5

      imageUrl: "http://www.picsofstuff.com/itdoesntgetbetterthanlagavulin"

      rating: 4.7

     }

   },

 `drinks`: { 

    13: { id: 13 

          bottle_name: "Lagavulin 16yr"

          type: "Islay single malt"

          description: "smokey like roasted wood out of fresh out of a fire"

          ratingId: 5,

          postIds: [12, 87, 44]

          image_url: http://www.picsofStuff.com/melikeyscotchy

        },

     10: { id: 10 

           bottle: "The Peat Monster"

           type: "Blend"

           region: "Caol Ila"

           description: "suffice to say its full of pete"

           postIds: [8, 16, 50]

           image_url: http://www.worlwidewebpisc.com/moc/csipbewediorlw

          }

     }

  },

ui: {

 loading: true/false

 },

session: {

       currentUserid: 33 

     },

errors: {

     login: ["User, or Password is incorrect. Please try again"]

    }

}