diff --git a/server/index.js b/server/index.js index f0abc2c..bc686d4 100644 --- a/server/index.js +++ b/server/index.js @@ -32,6 +32,7 @@ app.get("/api/products", (req, res) => { ]; res.status(200).send(data); }); + const PORT = 8000; app.listen(PORT, () => { diff --git a/website/src/App.js b/website/src/App.js index 236ef3f..96c5b9a 100644 --- a/website/src/App.js +++ b/website/src/App.js @@ -17,12 +17,13 @@ const App = () => { useEffect(() => { getProducts(); }, []); + return (

Demo Git Webhook

{allProducts.map((pro) => (
-

+

SN: {pro.SN}

PID: {pro.PID}