Sample State - KevLin2358/Slickr GitHub Wiki

{
  entities: {
    users: {
      1: {
        username: 'Bob',
        email: '[email protected]',
        first_name: 'Bob',
        last_name: 'Builder'
      },
      2: {
        username: 'Ted',
        email: '[email protected]',
        first_name: 'Ted',
        last_name: 'West'
      }
    },
    albums: {
      1: {
        id: 1,
        title: 'figurines',
        description: 'completed figurines',
        owner_id: 1
      },
      2: {
        id: 2,
        title: 'plants',
        description: 'monthly photos of my bonsai',
        owner_id: 1
      },
      3: {
        id: 3,
        title: 'Puerto Rico',
        description: 'pictures from Puerto Rico',
        owner_id: 1
      }
    },
    photos: {
      1: {
        id: 1,
        title: 'Gundam Build ---',
        description: '',
        album_id: 1,
        tag_id: 1,
        uploader_id: 1
      },
      2: {
        id: 2,
        title: 'Ficus microcarpa ginseng growing',
        description: 'day 300 with my ficus microcarpa ginseng',
        album_id: 2,
        tag_id: 2,
        uploader_id: 1
      },
      3: {
        id: 3,
        title: 'Day 5 in Puerto Rico',
        description: 'beach',
        album_id: 3,
        tag_id: 3,
        uploader_id: 1
      }
    }
  },
  ui: {
    loading: true/false, // images loading on the bottom
    modal: true/false // login / signup modal
  },
  errors: {
    login: ['Incorrect username or password'],
    albumForm: ['Album name cannot be blank'],
  },
  session: {
    currentUserId: 1
  },
  likes: {
      liker_id: 2,
      photo_id: 1
  },
  tags: {
    1:{
      name: "figurine"
    },
    2:{
      name: "plant"
    },
    3:{
      name: "beach"
    }
  },
  followers: { // (?)
    1:{ // follower_id: 1
      follower_id: 2
    }
}