Intro to Server side concerns with JavaScript
# Intro to Server side concerns with JavaScript
1. What do the letters of the acronym CRUD
stand for?
Create
Read
Update
Delete
2
3
4
5
2. Each action that CRUD
represents maps to an HTTP request. What HTTP request does each CRUD
action correspond to?
Create - post
Read - get
Update - put
Delete - delete
2
3
4
5
3. What does ORM
stand for? Which ORM
do we use when interacting with MongoDB
Object-relational mapping. we use Mongoose to interact with MongoDB.
4. Which two HTTP
request types include a body?
Put and Delete
5. In a/an ___ coding model, when you call a function, it returns only when the action has finished and stops your program for the time the action takes. Likewise in a/an ___ coding model, multiple things are allowed to happen at one time. When you perform an action, your program continues to run. Fill in the blanks.
Async, Await
6. Fill in the missing piece of this snippet of code.
import ______ from "_______";
let Schema = ________.Schema;
2
import mongoose from "mongoose";
const Schema = mongoose.Schema;
2
7. What is middleware?
A function that will receive the Request and Response objects.
8. The __ pipeline delivers information from the client while the __ pipeline returns it. Fill in the blanks.
Deployment?
9.
Demonstrate the pattern that is used to include a request query with the client's HTTP
request providing the property tag
and the value winter
.
?tag=winter&holiday=christmas
2