Sample State - Atar97/FSP GitHub Wiki

Sample State

  {
    sessions: {
      id: 1
    }
    errors: {
      sessionErrors: ['Invalid Credentials'],
      userErrors: [],
      routeErrors: [],
      workoutErrors: [],
      friendErrors: [],
      commentErrors: []
    }
    ui: {
      loading_map: true
    }
    entities: {
      users: {
        1: {
          id: 1,
          email: [email protected],
          fname: Austin,
          lname: Cotant,
          DOB: '1/1/1998',
          gender: M
        }
        2: {
          id: 2,
          email: [email protected],
          fname: Steve,
          lname: Guy,
          DOB: '2/3/1991',
          gender: 'M'
        }
      },

      routes: {
        3: {
          id: 3,
          creatorId: 1,
          location: 'Madison',
          map: 234,
          distance: 2301
        },
      },

      workouts: {
        1: {
          id: 1,
          userId: 1,
          startTime: 16:30,
          duration: 234,
          routeId: 3
      },

      friends: {
        1: {
          id: 1,
          friend1Id: 1,
          friend2Id: 2
        }
      },
      
      comments: {
        1: {
          id: 1,
          userId: 1,
          commentableType: 'route',
          commentableId: 3,
          body: 'Nice route!'
        }
      }
    }

  }