sample state - Waynexia888/Strava-Clone GitHub Wiki

{
  entities: {
    users: {
      1: {
        id: 1,
        username: "Wayne Xia",
        email: "[email protected]"
         }
      2: {
        id: 2,
        username: "Donald Trump",
        email: "[email protected]"
         }...
      },
    routes: {
      1: {
        id: 1,
        name: "route1",
        userId: 99,
        description: "description1",
        distance: 1000,
        duration: 45:46,
        elevation: 999,
         },
      2: {
        id: 2,
        name: "route1",
        userId: 69,
        description: "description2",
        distance: 666,
        duration: 15:35,
        elevation: 888,
         },
      3: {
        id: 3,
        name: "route1",
        userId: 66,
        description: "description3",
        distance: 33,
        duration: 01:03,
        elevation: 123,
         }...
       },
      workouts: {
         1: {
           id: 1
           name: "workout1",
           workoutDate: 01/11/2020,
           workoutType: "bike"
           userId: 2,
           routeId: 3,
           description: "description1",
           duration: 40:09
            },
         2: {
           id: 2,
           name: "workout2",
           workoutDate: 01/14/2020,
           workoutType: "running"
           userId: 6,
           routeId: 9,
           description: "description2",
           duration: 09:09
            },
         3: {
           id: 3,
           name: "workout3",
           workoutDate: 01/15/2020,
           workoutType: "skiing"
           userId: 8,
           routeId: 8,
           description: "description3",
           duration: 15:33
            }...
         },
      errors: {
        login: ["Incorrect username or password"]
      },
      session: {
          currentUserId: 1 }
   }
}