Express set-up
Integrating my Database
VOCAB
What does this line of code do
NFL DRAFT
100

What is the first thing I should do in the command line after creating my directory and initial folders.

NPM init

100

what is the first line of code I should run in my server file when starting the database integration process

const pg = require pg

100

what does the P in PSQL mean

Postgres

100

app.patch

updates a certain data point in your database

100

This NC State and Wisconsin QB was drafted in the 4th round and won a superbowl in the 2010's

Russell Wilson

200

what is the first line of code that should go on my server file

const express = require express

200

what are the two file names we typically use for the data in our database

migration and seed

200

Query

a request for data or information from a database table

200

require fs

allows you to work with the filesystem in your computer

200

The last Defensive player to be drafted #1 Overall

Myles Garrett

300

How can I hide my node modules so they don't get pushed up

git ignore

300

ID should always say what after it.

SERIAL PRIMARY KEY

300

Route

part of the url that identifies a resource

300

app.use

used to mount the specific middleware function at the path you are specifying it to.

300

Name the last 3 QBs to win the Hesiman and be drafted 1st overall

Burrow, Murray, Mayfield

400

What line of code should I use to start my app having express

const app = express()

400

What typically follows first after the INSERT INTO command

the table name

400

API

Application programming interface

400

ORDER BY DESC

will order the data you are retrieving from top to bottom. IE ORDER BY age DESC. The oldest ages would be first

400

This defensive player was the first of two DE's to be taken first overall in the 2010's

Jadeveon Clowney

500

How do I get my app to listen to a port

app.listen

500

what is the first step in actually getting the database to communicate with my app

setting up pool so we can make queries

500

Postgres is what kind of database?

Relational

500

res.statusCode

sets the HTTP status for the response

500

This was the only offense lineman to be taken 1st overall in the 2010's

Eric Fisher
M
e
n
u