diff --git a/README.md b/README.md
index 8248e4c..daab22b 100644
--- a/README.md
+++ b/README.md
@@ -8,22 +8,24 @@
-
User Story
+ User Story
+
- As a User I want to see a Homepage with app info
- As a User I want to be able to sign up or login at the homepage
- As a User I want to login and see my posts and others post
- As a User I want to be able to add posts with pictures/videos using username
- As a User I want to add comments to other's posts
- As a User I want to be able to Logout
-- As a User I want to
-- As a User I want to
-- As a User I want to
+- As a User I want to search for games
+- As a User I want to search for posts
+- As a User I want to edit and delete my posts
+- As a User I want to edit and delete my comments
Tech/Tools Used
- HTML
-- CSS
+- CSS - Flexbox, Grid
- Npm
- ExpressJS
- AWS
@@ -43,11 +45,20 @@
- Finding out how to log in with either username or email
- Verifying email or username to be unique regardless of capitalization
- Calling displayname instead of username to show up on the pages.
- -
+
+- Thursday 1/14/21:
+ - Trying to attach the game model and the post model
+ - Would not send the game information with each post because the relationship was not there
+ - Added a gameid in the post model as a foreign key and used it to find the game title for each post and used the gameid as the url to link each game title to that game's display page
+
+- Thursday 1/14/21:
+ - Having some problems with CSS and Grid
+ - Content not displaying correctly
+ - Fixed it with trial and error
Database Design
--
+
Diagrams
diff --git a/controllers/member.js b/controllers/member.js
index 6f36fe9..6197d61 100644
--- a/controllers/member.js
+++ b/controllers/member.js
@@ -60,7 +60,7 @@ const profile = async (req, res) => {
],
});
for (let p of member) {
- // p.User = await User.findByPk(p.userid);
+ p.User = await User.findByPk(p.userid);
p.Game = await Game.findByPk(p.gameid)
}
console.log(JSON.stringify(member, null, 4));
@@ -68,6 +68,7 @@ const profile = async (req, res) => {
locals: {
member,
user,
+ id
},
...layout,
});
diff --git a/public/images/modelDiagram.png b/public/images/modelDiagram.png
new file mode 100644
index 0000000..8e47924
Binary files /dev/null and b/public/images/modelDiagram.png differ
diff --git a/templates/profile.html b/templates/profile.html
index aefeb66..ee99e90 100644
--- a/templates/profile.html
+++ b/templates/profile.html
@@ -6,7 +6,7 @@
Logout
- ${posts.map(p => { return `
+ ${member.map(p => { return `
-
${p.title}