- GET
/api/restaurants/:id
Path Parameters:
id
restaurant id
Success Status Code: 200
See additional sections below for a more in-depth explanation of each of these requirements.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="/style.css"> | |
<title>FEC Demo</title> | |
</head> | |
<body> | |
<div id="Info"></div> | |
<div id="CountDown"></div> |
This first step is going to sound trivial. It isn't as trivial as it seems, and a shocking number of people manage to skip it.
Before you do anything else, you must understand WHY the tool or concept you're researching exists. If its purpose is not clear to you, you must clarify that first. Find a short overview of the tool or concept.
A general understanding of its purpose will help orient you as you attempt to understand/use it. The tool/concept has a purpose. If you can't articulate to another person what that purpose is (in a way that feels like it would be genuinely useful to YOU), there's a good chance you will struggle to use the tool effectively.
// https://stackoverflow.com/questions/8701754/just-disable-scroll-not-hide-it | |
// React method | |
changeView(update) { | |
// the if else below toggles background scroll off when modal opens | |
if (update) { | |
document.body.classList.add(`${styles.modalOpen}`); | |
} else { | |
document.body.classList.remove(`${styles.modalOpen}`); | |
} |
# Proxy Config | |
1 Node Server (which routes requests to each service) | |
# Service Config | |
1 Nginx Load Balancer | |
5 Ec2 Node Server Instances | |
2 Redis Cache Instances serving the node servers | |
1 Mongodb | |
# Loader IO Test |
FOR POST | |
# POST Artillery Config | |
config: | |
target: 'http://localhost:1000' | |
# target: 'http://localhost:9001' | |
phases: | |
- duration: 60 | |
arrivalRate: 10 |
# Artillery Config “stressTest.yml” | |
config: | |
target: 'http://localhost:9001' | |
phases: | |
- duration: 60 | |
arrivalRate: 20 | |
payload: | |
path: 'restaurantIds.csv' | |
fields: | |
- 'restaurantId' |
QUERY: collection.findOne({ _id: ObjectId("5bf5c6a0de88b93f579e6437") }) | |
Query took 7.049114 milliseconds | |
RESULTS: | |
{ _id: 5bf5c6a0de88b93f579e6437, | |
restaurantId: 9999989, | |
name: 'Schroeder and Sons', | |
address: '438 King Landing, Araton, Louisiana, 62867', | |
cost: 5, | |
phone: '267-801-2129', |