
PERN Stack Course - Postgres, Express, React, and Node
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Mohammed
the update replaces the description with -null- :(
app.put('/todos/:id',async(req, res) => --
try --
const -id-=req.params;-
const -description-=req.body-
const updated= await pool.query(-UPDATE todo SET description = $1 WHERE todo_id = $2-,[description,id])-
res.send(-Todo Updated-)-
- catch (error) --
--
-)
reply
the update replaces the description with -null- :(
app.put('/todos/:id',async(req, res) => --
try --
const -id-=req.params;-
const -description-=req.body-
const updated= await pool.query(-UPDATE todo SET description = $1 WHERE todo_id = $2-,[description,id])-
res.send(-Todo Updated-)-
- catch (error) --
--
-)
reply
Antonio
When I write -node index- nothing happens, it does not return anything. It doesn't return anything in the cmd, too. Seems like -node- command only works when i write 'cd/C:/Program FIles/nodejs'. Does anyone know why, how, or how to fix it, even if I need to fix it? Do I need to change something?
reply
When I write -node index- nothing happens, it does not return anything. It doesn't return anything in the cmd, too. Seems like -node- command only works when i write 'cd/C:/Program FIles/nodejs'. Does anyone know why, how, or how to fix it, even if I need to fix it? Do I need to change something?
reply
Wilson
for those that are stuck trying to get a response in postman after sending a post request, you need to include -res.send(-your message-);-, after receiving the request. It seems like the post method does not automatically send back a response after a request is received.
reply
for those that are stuck trying to get a response in postman after sending a post request, you need to include -res.send(-your message-);-, after receiving the request. It seems like the post method does not automatically send back a response after a request is received.
reply
Anton
First of all, thank you for your effort. Second of all just as an advice - learn how to tab between apps. Looking for the moving mouse just to see whats behind an application is soooo distracting for pros )) and this win98 mouse sound distracts me even more. Thanks.
reply
First of all, thank you for your effort. Second of all just as an advice - learn how to tab between apps. Looking for the moving mouse just to see whats behind an application is soooo distracting for pros )) and this win98 mouse sound distracts me even more. Thanks.
reply
Fyardlest
To good to be true. It is so easy to do when you find someone like The Stoic Programmers teach it. You just see how easy it it and I think I will go with the PERN stack for some big project. Hope to learn how to connect Nextjs with Postgres. Thanks Guys!
reply
To good to be true. It is so easy to do when you find someone like The Stoic Programmers teach it. You just see how easy it it and I think I will go with the PERN stack for some big project. Hope to learn how to connect Nextjs with Postgres. Thanks Guys!
reply
shaf
great tutorial! thanks man. Can anyone explain to me what the purpose of the -database.sql- file was for? It seems like we just copied all the commands on to the psql shell in the video, so is the file just for a reference?
reply
great tutorial! thanks man. Can anyone explain to me what the purpose of the -database.sql- file was for? It seems like we just copied all the commands on to the psql shell in the video, so is the file just for a reference?
reply
Jay
When I go into Visual Studio and try to create a new file, the VSC command line says: -Select a Language-. What should I put here? It's unclear in the video. BTW: Total novice here. Thanks.
reply
When I go into Visual Studio and try to create a new file, the VSC command line says: -Select a Language-. What should I put here? It's unclear in the video. BTW: Total novice here. Thanks.
reply
Jason
The Postman part was a bit of a curve ball since i dont know how it use it, got a bit discourage but continued watching and only realized that you wanted to set an example
reply
The Postman part was a bit of a curve ball since i dont know how it use it, got a bit discourage but continued watching and only realized that you wanted to set an example
reply
Ankita
\conninfo Use this command line to confirm the port number, database name & user information. The default PostgreSQL port is 5432, but in some cases it can be different.
reply
\conninfo Use this command line to confirm the port number, database name & user information. The default PostgreSQL port is 5432, but in some cases it can be different.
reply
Tony
This was amazing... I have been beating myself up on the CORS issue for days now. Was not aware you could just add the command when installing express. Thank you!!!
reply
This was amazing... I have been beating myself up on the CORS issue for days now. Was not aware you could just add the command when installing express. Thank you!!!
reply
Add a review, comment
Other channel videos















