Skip to content

Single component of a cloned AirBnB product details page, optimized for high network traffic.

License

Notifications You must be signed in to change notification settings

futoncountryinn/booking-service

Repository files navigation

AirBnB Booking Component

Single component of a cloned AirBnB product details page.

Related Projects

License

This project is licensed under the MIT License - see the LICENSE.md file for details


Getting Started

Prerequisites

In your terminal,

  • npm install

Starting the App

In your terminal,

  • Run webpack npm run build-dev or npm run build-prod
  • Start your server npm start
  • Seed the database w/ data npm run buildCSV then npm run seedSQL

In your browser,

  • Navigate to http://localhost:3002

Testing

In your terminal,

  • Run Jest tests for MongoDB connection & Express server connections npm test

API Routes

GET with route /checkout to get all reservation records

POST with route / to insert new records

  • include {checkin: value, checkout: value} in request body

DELETE with route / to remove reservation record

  • incude {id: value} in request body

PUT with route / to update an existing record

  • include {id: value, checkin: value, checkout: value} in request body

About

Single component of a cloned AirBnB product details page, optimized for high network traffic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages