BarneyShi / Team1-VanHouse

CPSC455 course project.
0 stars 1 forks source link

GET and POST posts #23

Closed NaithanB closed 3 years ago

NaithanB commented 3 years ago

Hey everyone,

I think this is ready to be pulled.

Screen Shot 2021-07-11 at 2 47 38 PM Screen Shot 2021-07-11 at 2 47 58 PM Screen Shot 2021-07-11 at 2 52 54 PM

Features added:

Still to do:

Notes:

Let me know if you spot any problems!

BarneyShi commented 3 years ago

@NaithanB Nice!

I haven’t set the author or authorId fields in the new posts yet. I’m not sure how to get that info yet.

I think we can get the current user info after Sujin finishes her part. We need to store this information somewhere.

I’m using the _id field that mongodb auto creates instead of our id fields.

I think this is a better idea. I used id when creating documents to associate each document together. But now I think it's unnecessary.

parksj23 commented 3 years ago

re: the _id vs id, yes, I just asked the same question on Slack!

I agree, just using the auto-generated _id seems best.