Skip to content

Code Review#7

Open
theduckfliesagain wants to merge 40 commits into
reviewfrom
main
Open

Code Review#7
theduckfliesagain wants to merge 40 commits into
reviewfrom
main

Conversation

@theduckfliesagain

Copy link
Copy Markdown
Owner

No description provided.

@Sem-the-dev Sem-the-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are from Semhar and Faisal, we think it's great, just added really small suggestions

Comment thread client/styles.css

footer{
background-color:#f1f3f4;
position: absolute;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to remove the position so the footer doesn't move when you open dev tools

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes thank you

Comment thread server/models/result.js

static search(str) {
const searchResults = resultsData.filter(result => {
return result.heading.toLowerCase().includes(str) === true || result.desc.toLowerCase().includes(str) === true;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also add .trim() to the str so it removes whitespace before or after the text (so if someone puts a space before or after their search word it still works)

and add .toLowerCase() to the str so you can search in capital letters too

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

Comment thread README.md

* Run `npm start` in server folder to launch server.
* Visit `localhost:3000` in your browser to view the server contents.
* Run `start index.html` in client folder to launch client.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI for mac it would be open index.html

Comment thread server/models/result.js

static get random() {
const randID = Math.floor(Math.random() * resultsData.length);
console.log(randID)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is showing up on the terminal

Comment thread README.md

### Usage

* Run `npm start` in server folder to launch server.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this command won't work on mac, it would be node index.js

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thanks, I think this might have been an issue with our package.json file as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants