Skip to content

Sample State

Everett Smith edited this page Jun 11, 2021 · 12 revisions
{
  entities: {
    trail: {
      4: {
        id: 4,
        title: "Quandary Peak Trail",
        routeCoords: "[
                       [39.44008, -105.37480], 
                       [39.44009, -105.37482], 
                       ... , 
                       [39.44112, -105.37308]
                     ]",
        difficulty: "Hard",
        length: 6.2,
        description: "One of Colorado's easiest, most accessible and most popular 14'rs, 
                      Quandary Peak is a steep 6 mile out and back trail 
                      just 20 minutes south of Breckenridge.",
        estimatedTime: 5.0,
        photoUrls: "["urlone", "urltwo", ... , "urlthree"]",
        waypointIds: [4, 12],
        reviewIds: [6, 15] 
      },
      photos: {
        4: {
          id: 4,
          trail_id: 4,
        },
        12: {
          id: 12,
          trail_id: 4,
        }
      },
      reviews: {
        6: {
          id: 6,
          body: "I love this hike this was my 12th time up Quandary. 
                 Extremely crouded but still a fantastic hike. 
                 I recommend getting there as early as possible to find parking.",
          authorID: 1345,
          trailId: 4,
        },
        15: {
          id: 15,
          body: "Way too many people - took me an hour to park. 
                 I am never doing this hike again.",
          authorID: 980,
          trailId: 4,
        },
      },
      
      }
    }
  },
  ui: {
    loginModal: false
  },
  errors: {
    login: ["trailname cannot be blank"],
    commentForm: ["Must be logged in to leave comment"]
  }, 
  session: { currentUserId: 2096 }
}

Clone this wiki locally