Skip to content

Carly Burkhart Complete#146

Open
TimeIsOnMySide wants to merge 12 commits into
projectshft:masterfrom
TimeIsOnMySide:master
Open

Carly Burkhart Complete#146
TimeIsOnMySide wants to merge 12 commits into
projectshft:masterfrom
TimeIsOnMySide:master

Conversation

@TimeIsOnMySide

Copy link
Copy Markdown

No description provided.

Comment thread .gitignore
@@ -0,0 +1 @@
node_modules/* No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you!

Comment thread models/product.js
@@ -0,0 +1,12 @@
const mongoose = require('mongoose')
const Schema = mongoose.Schema

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semi-colons at end of lines

Comment thread package.json
@@ -0,0 +1,9 @@
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

if you want, you can combine this with your other one and just have one package for the whole project

Comment thread product-page/src/App.js
import './App.css'
import ProductList from './features/products/ProductList'

function App() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would still change this to a function expression - I know this is how react default outputs this but just a suggestion.


.product-list-container h2 {
font-size: 24px;
margin-bottom: 20px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

px is kind of an older way to define spacing in css, read this for more info https://engageinteractive.co.uk/blog/em-vs-rem-vs-px

const fetchCategories = async () => {
try {
const response = await fetch('http://127.0.0.1:8000/products')
const data = await response.json()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would add the address to a variable so its easy to change on the fly

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.

2 participants