Rental car booking app
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.env
.gitignore
LICENSE
README.md
package-lock.json
package.json
vroom.png

README.md

Vroom

Vroom

Vroom is a React web app that makes renting a car quick and easy. Vroom displays an interactive portal where you can search for a location and dates/times to pick up and drop off your rental car, then select a rental car from different rental companies, and lastly confirm your booking and see a map of how to get to your intended pick-up location. Vroom uses React Geosuggest to suggest Google Maps locations as you search for your pick-up and drop-off cities, as well as Airbnb's react-dates to provide a calendar-based date range selector. Car rental data is acquired via Amadeus' Car Rental Geosearch API. When you confirm your booking, your information gets sent to a RESTful API that stores your data in a PostgreSQL database and returns a unique confirmation code for your booking.

Setup

  1. Clone this repository locally or on your server (git clone https://github.com/jrmacks/eh-rental-app).
  2. Enter the vroom directory, and install the required dependencies by running npm install.
  3. Request API keys from Amadeus and Google Maps.
  4. Set the following environment variables in the .env file:
    • REACT_APP_GOOGLE_KEY for the Google Maps API key you generated in step 3
    • REACT_APP_AMADEUS_KEY for the Amadeus API key you generated in step 3
    • REACT_APP_SERVER_PATH for the URL of the back-end server that stores booking information (see the Vroom API repository for setup instructions)
  5. Compile the required stylesheets and scripts by running npm run build. The compiled files will be located in the build directory.