Closed jenvomo closed 3 years ago
All, except routes, are updated based on the comments. Thanks!
Front routes & back routes are updated based on suggestions.
Changed schema -- now channels
table has a column message_id
. Now when fetching channelMessages
, the server hits channels
first and the fetch channelMessages
based on message_id
column. Not sure if this is a better approach, but the intention is to reduce the number of query requests.
updated schema to simplified to logic for demo purpose:
messages
Not sure about the backend routes design yet...
Just reviewed! Docs are looking great @lilyzhaoyilu ! There a couple items left - let me know if you have any questions!
updated according to the suggestion above.
Great job @lilyzhaoyilu !
Wiki Page Home
Comments
MVP List
Comments
Database Schema
back_ticked
back_ticked
back_ticked
Comments
channel_id
for thechannel_messages
tableSample State
```javascript...```
). This will display the state as a code block instead of a giant line of textentities
session
errors
(here or inui
)ui
(if needed)comments
inside ofposts
Comments
channelId
for each of thechannelMessages
hereBackend Routes
snake_case
GET likes
api endpoint because that info comes through the post showComments
[x] We'll want routes for channels to be created, etc
Frontend Routes
camelCase
inline coding text
(backticks)Comments
/client/:channelId
/channels
ChannelIndex
/channels/:channelId
MessageIndex
MessageIndexItem
MessageForm