-
Notifications
You must be signed in to change notification settings - Fork 1
Sample State
jennhuynh02 edited this page May 3, 2020
·
61 revisions
{
entities: {
users: {
12: {
id: 12,
first_name: "Guest",
last_name: "User",
email: "[email protected]",
authoredQuestionIds: [10],
authoredAnswerIds: [404],
authoredCommentIds: [x],
},
22: {
id: 22,
first_name: "Isaac",
last_name: "Newdon",
email: "[email protected]",
authoredQuestionIds: [20],
authoredAnswerIds: [101],
authoredCommentIds: [x],
},
32: {
id: 32,
first_name: "Wayne",
last_name: "Brazy",
email: "[email protected]",
authoredQuestionIds: [30],
authoredAnswerIds: [505],
authoredCommentIds: [x],
},
42: {
id: 42,
first_name: "James",
last_name: "Bands",
email: "[email protected]",
authoredQuestionIds: [40],
authoredAnswerIds: [606],
authoredCommentIds: [x],
},
52: {
id: 52,
first_name: "Dadarick",
last_name: "Yawns",
email: "[email protected]",
authoredQuestionIds: [50],
authoredAnswerIds: [303],
authoredCommentIds: [x],
},
62: {
id: 62,
first_name: "Dandan",
last_name: "Who",
email: "[email protected]",
authoredQuestionIds: [60],
authoredAnswerIds: [202],
authoredCommentIds: [x],
},
},
questions: {
10: {
id: 10,
ask: "What is Question Aura?",
topicId: x,
askerId: 12,
},
20: {
id: 20,
ask: "What's the best strategy for becoming a Leet-codeist?",
topicId: x,
askerId: 22,
},
30: {
id: 30,
ask: "What was your experience like at App Academy?",
topicId: x,
askerId: 32,
},
40: {
id: 40,
ask: "What are some of the best tech companies to work for in terms of: culture, room for growth, salary, perks, etc.?",
topicId: x,
askerId: 42,
},
50: {
id: 50,
ask: "How do I help myself better understand recursions?",
topicId: x,
askerId: 52,
},
60: {
id: 60,
ask: "What are useful websites/applications for finance? I'm looking for tools for investing and managing my finances.",
topicId: x,
askerId: 62,
},
},
answers: {
101: {
id: 101,
questionId: 10,
body: "Question Aura is an attempt at cloning the author programmer's favorite website - Quora.",
responderId: 22,
},
202: {
id: 202,
questionId: 20,
body: "Practice makes perfect. To get good at Leet code, you should start working on the easy ones until you are prepared for the medium and hard questions. Overtime, you will become familiar with your high level and low level strategies for solving algorithmic coding problems.",
responderId: 62,
},
303: {
id: 303,
questionId: 30,
body: "App Academy was a very intense and rewarding experience. I learned how to code in Ruby and Javascript, as well as learn concepts like the Big O. I've made a lot of great friends and learned a lot while I was in the program. I would highly recommend this program to anyone who is serious about learning to code and becoming a programmer.",
responderId: 52,
},
404: {
id: 404,
questionId: 40,
body: "The best tech companies to work for are in San Francisco and Silicon Valley - companies include Google, Facebook, Square, Splunk, DoorDash, Samsara, Salesforces, and other startups that value a good culture.",
responderId: 12,
},
505: {
id: 505,
questionId: 50,
body: "A good strategy for understanding recursions is to draw out each stack frame of the recursive problem/solution. Doing so will help you understand that value that is being returned at each recursive step.",
responderId: 32,
},
606: {
id: 606,
questionId: 60,
body: "Good finance management apps include Capital One, Robinhood, Chase Bank, and a good excel sheet to help you keep track of your finances. An excel sheet, while tedious, will walk you through your spending habits.",
responderId: 42,
}
},
comments: {
11: {
id: 11,
answerId: 101,
body: "I have found that with more practice, I have become a lot better at solving the more complex LeetCode problems."
commenterId: 82,
},
22: {
id: 22,
answerId: 303,
body: "This is a very good strategy for understanding recursions. In addition to this, I was also very sure to think very hard about the return value of my base case. This is crucial to successfully solving problems recursively."
commenterId: 72,
},
},
topics: {
1: {
id: 1,
name: "coding"
},
2: {
id: 2,
name: "bootcamp"
},
3: {
id: 3,
name: "career"
},
4: {
id: 4,
name: "finance"
},
},
ui: {
loading: true/false
},
errors: {
login: ["Invalid username/password combination"],
signup: ["Please choose another username and a secure password (minumum length: 6 characters)"],
question: ["Please ask your question"],
answer: ["Response must not be blank"],
comment: ["Please type out comment before submitting"]
},
session: {
currentUserId: 3
},
},
}