Booking module allows user to see general listing details, vacancies in a month, and make a reservation by choosing check-in/check-out dates on a calendar, and specify number of guests.
- https://github.com/AirGB/hero-photo-service
- https://github.com/AirGB/Review-service
- https://github.com/AirGB/about-service
- https://github.com/AirGB/kony-proxy
- Use this app to further investigate the reservation service component of our AirGB project. For those who are curious, the GB in AirGB stands for Good Boi
- Node 6.13.0
- Mysql 5.7.22
To create database of mock data From within root directory:
mysql -h localhost -u root
source db/schema.sql
use reservation
source mock-data/mock_data.sqlTo install dependencies From within the root directory:
npm install -g webpack
npm install
npm run build
npm startcurl -H "Content-Type: application/json" -X GET -d '{"listingId":"1234567"}' http://localhost:3003/api/listings/:listingIdcurl -H "Content-Type: application/json" -X POST -d '{"guest_id":"184", "booked_dates_id":"763", "total_adults":"1", "total_pups":"5", "total_charge":"117.54"}' http://localhost:3003/api/reservations/newcurl -H "Content-Type: application/json" -X PUT -d '{"listingId":"20183", "rate":"135.99"}' http://localhost:3003/api/listing/:listingId/rate/:ratecurl -H "Content-Type: application/json" -X DELETE -d '{"reservationId":"2018"}' http://localhost:3003/api/reservation/:reservationId