Sample State - Paul-Ryan/catstarter GitHub Wiki

  • Sample State
{
  entities: {
    projects: {
      1: {
        id: 1,
        title: "make an album",
        blurb: "really cool jamz",
        description: "good music, and I'll write way more about it",
        author_id: 1,
        due_date: 06/28/18,
        funding_goal: 5000,
        img_url: "http:kickstarter.com",
      },
      2: {
        id: 2,
        title: "make a cool game",
        blurb: "lots of pieces",
        description: "rad game with many pieces and many other things",
        author_id: 3,
        due_date: 06/15/18,
        funding_goal: 1000000,
        img_url: "http:kickstarter.com",
      },
    }
    rewards: {
      1: {
        id: 1,
        project_id: 1,
        title: "super backer",
        description: "get 100 widgets",
        pledge_amount: 45,
      }
    },
    pledges: {
      1: {
        user_id: 2,
        project_id: 4,
        pledge_amount: 100
      }
    },
    categories: {
      1: {
        id: 1,
        name: "music",
      },
      2: {
        id: 2,
        name: "games",
      }
    },
    users: {
      11: {
        id: 11,
        username: "Bart",
        email: "[email protected]",
      }
    }
  },

  ui: {
    loading: false,
    current_category: games,
  },

  errors: {
    projectErrors: [],
    sessionErrors: ["Incorrect username or password"]
  },

  session: {
    currentUser: {
      id: 1,
      username: "username",
      email: "[email protected]",
    }
  }
}