pgpgA node module that enables interaction with your PostgreSQL database
Sweet
1. Build our database
CREATE DATABASE pgteas;
\c pgteas
CREATE TABLE teas (
id serial PRIMARY KEY,
name varchar(150),
flavor varchar(150),
in_stock bool
);
INSERT INTO teas (name, flavor, in_stock) VALUES ('green tea', 'greeny', TRUE);
INSERT INTO teas (name, flavor, in_stock) VALUES ('blue tea', 'blueish', false);
INSERT INTO teas (name, flavor, in_stock) VALUES ('red tea', 'reddish', TRUE);
INSERT INTO teas (name, flavor, in_stock) VALUES ('yellow tea', 'lemony', TRUE);1. Build our database
2. Create Express app
1. Build our database
2. Create Express app
3. Connect app to database...?
Jump into your node environment
node1. Build our database
2. Create Express app
3. Connect app to database!
Requirements:
3 things you learned
2 things you found interesting
1 thing you want to review