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.
- Clone this repository locally or on your server (
git clone https://github.com/jrmacks/eh-rental-app).
- Enter the
vroomdirectory, and install the required dependencies by running
- Request API keys from Amadeus and Google Maps.
- Set the following environment variables in the
REACT_APP_GOOGLE_KEYfor the Google Maps API key you generated in step 3
REACT_APP_AMADEUS_KEYfor the Amadeus API key you generated in step 3
REACT_APP_SERVER_PATHfor the URL of the back-end server that stores booking information (see the Vroom API repository for setup instructions)
- Compile the required stylesheets and scripts by running
npm run build. The compiled files will be located in the