in order to bring in a library into your JS file: const express = require(“express) --> this is a function
use const app = express() to enable the express functionality
http verbs required in the code (RESTful architecture):
GET - its gets some data, retrieves info
POST - creates new data
PUT/PATCH - update information that’s already stored
DELETE - delete stored data/existing information
HEAD request - is the connection okay?
REQUEST vs RESPONSE: requests from the user/client specifically, while response is what the API server sends back after it preforms work on those requests
POST requests manipulate data
the function app.use(express.json) will give your express server the ability to read raw json files
Today I Learned...
JavaScript
HTML/CSS
APIs