import express from 'express';
import data from './data';
const app = express();
app.get("/api/products", (req, res) => {
res.send(data.products);
});
app.listen(5000, () => {
console.log("server started at at http://localhost:5000");
});
If someone can help and need extra code or information, please tell me and i'll provide it as fast as possible!
Hey there again!
I'm getting this error: ~
When trying to execute: node backend/server.js.
This is my server.js code:
If someone can help and need extra code or information, please tell me and i'll provide it as fast as possible!
Thanks for the attention!!