Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 558 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 558 Bytes

reviews

How to start this component?

  1. npm install
  2. run 'mysql -u root -p < database/schema.sql' command in the terminal to create database and table
  3. npm run seed-database
  4. npm run react-dev
  5. npm run start

CRUD API

GET /property/:property_id/reviews -get all reviews for specified listing

POST /property/:property_id/reviews -insert new review for specified listing

DELETE /property/:property_id/reviews/:id -delete specific review at specified listing

PUT /property/:property_id/reviews/:id -update a specific review at specified listing