Skip to content

Sample State

langerkirill edited this page Jul 10, 2018 · 5 revisions

{

entities: {
  users: {
    1: {
      id: 1,
      username: "fitguy5",
      workout_id: 2,
       }...
    },
  workouts: {
    1: {
      id: 1,
      type: "biking",
      duration: 25 minutes,
      Miles: 16.5,
      workout_date: Date,
       }...
    }
  routes: {
    1: {
      id: 1,
      start: [44.968046, -94.420307],
      end: [33.755787, -116.359998]
       }...
    }
  challenges: {
    1: {
      id: 1,
      title: “Run up a hill”,
      body: “Do it fast and tell friends”,
      register_id: 11
        }...
    }
  Comments: {
    1: {
      id: 1,
      body: “You suck!”,
      user_comment: 2,
      workout_id: 2
       }...
    }
  Session: { 
      currentUserId: 22 }
 }

}

Clone this wiki locally