Skip to content

Sample State

Taylor Musolf edited this page Apr 10, 2021 · 6 revisions
{
  entities: {
    users: {
      1: { 
        id: 1, 
        username: 'demo-user', 
        email: 'faker@gmail.com',
        bio: 'Just your basic user.'
      },
      2: { 
        id: 2, 
        username: 'jnox', 
        email: 'jnox@gmail.com',
        bio: 'Bay Area based friendly, mild-mannered content creator'
      },
      3: { 
        id: 3, 
        username: 'abananadabanana', 
        email: 'abananadabanana@gmail.com',
        bio: 'Bay Area based cooking personality that loves baking!'
      },
      4: { 
        id: 4, 
        username: 'dmoyer', 
        email: 'dmoyer@gmail.com',
        bio: 'Dean loves smart products.  Give Dean what he wants.'
      },
      5: { 
        id: 5, 
        username: 'twenty3x', 
        email: 'jannasnyder@gmail.com',
        bio: 'Hippity hop.'
      },
      6: { 
        id: 6, 
        username: 'dustyknuckle', 
        email: 'dustyknuckle@gmail.com',
        bio: 'Mother of three that likes a deal.'
      }
    },
    projects: {
      1: { 
        id: 1, 
        title: 'Kemet:Blood and Sand', 
        description: 'Master godlike powers and the monsters of ancient Egypt',
        campaign: '...',
        updates: '...',
        faq: '...',
        location: 'France',
        startDate: 2021-06-01,
        endDate: 2021-06-30,
        fundingGoal: 10000,
        creatorId: 3
      },
      2: { 
        id: 1, 
        title: 'Upright Go', 
        description: 'Easily correct your screen-slouch with a tiny habit-forming wearable',
        campaign: '...',
        updates: '...',
        faq: '...',
        location: 'USA',
        startDate: 2018-10-31,
        endDate: 2018-12-01,
        fundingGoal: 25000,
        creatorId: 2 
      },
      3: { 
        id: 3, 
        title: 'Creature Comfort Throw Blanket', 
        description: 'Wrap yourself in beasts, bats, and bugs. Bliss.',
        campaign: '...',
        updates: '...',
        faq: '...',
        location: 'USA',
        startDate: 2021-04-30,
        endDate: 2021-05-01,
        fundingGoal: 5000,
        creatorId: 4
      }
    },
    categories: {
      1: { 
        id: 1, 
        name: 'Games'
      },
      2: { 
        id: 2, 
        name: 'Tech'
      },
      3: { 
        id: 3, 
        name: 'Food & Craft'
      },
    },
    backings: {
      1: { 
        id: 1, 
        amountPledged: 50.00, 
        backerId: 5,
        projectId: 1,
        rewardId: 1
      },
      2: { 
        id: 2, 
        amountPledged: 69.00, 
        backerId: 1,
        projectId: 2,
        rewardId: 3
      },
      3: { 
        id: 3, 
        amountPledged: 50.00, 
        backerId: 6,
        projectId: 1,
        rewardId: 1
      }
    },
    comments: {
      1: { 
        id: 1, 
        body: 'Hi, never received my item. Can you help?', 
        commenterId: 1,
        projectId: 2
      },
      2: { 
        id: 2, 
        body: 'We are sorry about the inconvenience and please look for our response via PM in order to further assist you.', 
        commenterId: 2,
        projectId: 2,
        parentCommentId: 1
      },
      3: { 
        id: 3, 
        body: 'I am so excited to receive this!', 
        commenterId: 5,
        projectId: 1
      }
    },
    rewards: {
      1: { 
        id: 1, 
        title: 'God Pledge', 
        description: 'This is the Kemet: Blood and Sand base pledge. Includes Kemet and all unlocked stretch goals',
        projectId: 1,
        cost: 50.00
      },
      2: { 
        id: 2, 
        title: 'Pantheon Pledge', 
        description: 'This is a Kemet: Blood and Sand group pledge. Includes 4 copies of Kemet and all unlocked stretch goals',
        projectId: 1,
        cost: 200.00
      },
      3: { 
        id: 3, 
        title: 'KickBacker Special', 
        description: '30% off retail.  Get one Upright Go trainer and travel case.',
        projectId: 2,
        cost: 69.00
      }
    },
    likes: {
      1: { 
        id: 1, 
        projectId: 1, 
        userId: 5
      },
      2: { 
        id: 2, 
        projectId: 2, 
        userId: 6
      },
      3: { 
        id: 3, 
        projectId: 2, 
        userId: 1
      },
     project_catgories: {
      1: { 
        id: 1, 
        projectId: 1, 
        categoryId: 1
      },
      2: { 
        id: 2, 
        projectId: 2, 
        categoryId: [1, 2]
      },
      3: { 
        id: 3, 
         projectId: 3, 
        categoryId: 3
      }
    }

  },
  errors: {
    login: ["Incorrect username/password combination"],
    projectForm: ["Project title cannot be blank"],
  },
  session: {
    session: { currentUserId: 1 }
  }
}
Clone this wiki locally