Jul 17, 2024
os
, path
, fs
, http
.express.json()
and express.static()
middleware.node -v
.app.js
file.node
command in terminal.node app.js
.module
object.os
, path
, fs
, http
.
os
module for operating system info, path
for file paths, fs
for file system operations, http
for creating servers.module.exports
to define what will be exported from the module.util.promisify
.http
module with http.createServer()
.req
, res
objects.http
module.npm install express
.const express = require('express');
and const app = express();
.express.static
, express.json
, and custom middleware.express.static
.res.json()
./api/products/:id
) and query strings.package.json
for nodemon app.js
.