Component to select calendar dates and number of guests for booking. It also displays prices per night and total number of reviews.
- https://github.com/bedroost/gallery
- https://github.com/bedroost/review
- https://github.com/bedroost/description
Some usage instructions
HTTP Method | Endpoint | Description |
---|---|---|
GET | /api/rooms/:listingid | Return details about a specific listing |
POST | /api/rooms/ | Create a new listing |
PUT | /api/rooms/:listingid | Update and replace details for a specific listing |
DELETE | /api/rooms/:listingid | Delete a specific listing |
HTTP Method | Endpoint | Description |
---|---|---|
GET | /api/bookings/:listing_id | Returns all booked dates for a specific listing |
POST | /api/bookings/:listing_id | Add a booked date for a specific listing |
PUT | /api/bookings/?id | Update and replace details of a specific booked date for a specific listing |
DELETE | /api/bookings/?id | Remove a booked date for a specific listing |
An nvmrc
file is included if using nvm.
- Node 6.13.0
- etc
From within the root directory:
npm install -g webpack
npm install
npm run build
mysql -uroot < ./server/db/schema.sql
npm run seed