Extra Resources:
- Learn PostgreSQL
- Node and Express.js Fundamentals – Collecting Form Data with Express
- JSON Parse
- Add to Array
- https://pugjs.org/api/getting-started.html
- Cheat sheet for postgresql command lines
- connect to postgresql using js
—
Questions about these instructions: (https://github.com/anb429/inclass/tree/master/class3)
1.)
3.) How do you connect Postgresql to Javascript? Trying to follow along with: http://www.tothenew.com/blog/connect-to-postgresql-using-javascript/
but became stuck with this line of code (how do you know what to put for those specific parts, which password?):
var connectionString = "postgres://userName:password@serverName/ip:port/nameOfDatabase";