Project description
Scaled the backend of a property reservations app to handle high volume network traffic on an existing code base
- https://github.com/lodgelab/images
- https://github.com/lodgelab/reservations
- https://github.com/lodgelab/reviews
Some usage instructions
- Node 10.16.3
From within the root directory:
npm install
mysql -u root < ./schema.sql
npm run seeder
npm run build
npm run start
URL /api/:property/review
Example: /api/10000/review
Success Response:
"Review has been posted"
URL: /api/:property/reviews
Example: /api/100000/reviews
Success Response:
[
{
"property_id": 100000,
"id": 6002811,
"accuracy": 1,
"check_in": 2,
"cleanliness": 3,
"communication": 2,
"date": "2018-10-04",
"guest_id": 9632250,
"guest_name": "Arlie",
"guest_picture": "https://s3.amazonaws.com/uifaces/faces/twitter/jennyshen/128.jpg",
"host_name": "Nathaniel",
"host_picture": "https://s3.amazonaws.com/uifaces/faces/twitter/newbrushes/128.jpg",
"location": 5,
"review": "Vel reiciendis quod.",
"review_response": "null",
"value": 5
},
]
URL: /api/:property/:review
Example: /api/10000/95000000
Success Response:
"Review has been updated"
URL: /api/:property/:review
Example: /api/10000/95000000
Success Response:
"Review has been deleted"