Sample State Shape - nerochen25/full_stack_project GitHub Wiki

{
  entities: {
    users: {
      1: {
        id: ,
        username: '',
        emailAddress: '',
        profileDescription: ''
        }
    },
    projects: {
      1: {
        id: 1,
        title: 'Project 1',
        description: 'a project that focuses on leather wallet',
        creatorId: 1,
        supporterId: [1,2,3,4],
        categoryId: 1,
        collectionId: 1,
        fundingGoal: 1000,
        amountPledged: 500,
        rewardOffered: false,
        dueDate: "May 25 2018",
        rewardId: [1,2,3]
      }  
    },
    categories: {
      1: {
        id: 1,
        name: "Education",
      }
    },
    pledges: {
      1: {
        id: 1,
        amount: 5000,
        supporterId: 25,
        projectId: 2,
        rewardId: 10
      }
    },
    rewards: {
      1: {
        id: 1,
        projectId: 3,
        pledgeAmount: 400,
        title: "$10 or more",
        itemName: ["Pistachio Wars sticker", "Newsletter"],
        description: "Won't let you down",
        estimatedDelivery: "May 20 2018",
        deliveryLocationLimit: "Anywhere in the world",
        limitedAvailability: false,
        backerLimit: 500
      }
    },
    bookmarks: {
      1: {
        id: 1,
        watchId: [1,2,3,4],
        projectId: [5,6,7],
      }
    },
    comments: {
      1: {
        id: 1,
        projectId: 1,
        commenterId: 1,
      }
    }
  }
  session: {
    currentUserId: 1
  },
  ui: {
    loading: true/false,
    sorting: ['magic(random)', 'nearly funded', 'just launched', 'ending soon'],
  },
  errors: {
    login: ["Incorrect username/password combination"],
    projectRegistration: ["Required field"],
    signup: ["Required field"],
  }
}