Udacity FEND- Capstone Project
This project is a travel app that allows users to plan their trips, the user will start by adding the location and dates of their trip.
With the use of 5 API's the details that will be displayed:
- The weather (current/forecast) at the time of the trip (which is only limited for 16 days in the future).
- Destination info (region, country, capital, population, currencies, languages).
- Departure and return dates.
- Days left before departure date.
- Duration of the trip.
- An image of the destination. Also, the app allows the user to add multiple destination/cities.And the data will be stored in local storage.
- Webpack
- Node.js
- Express
- Html
- CSS
- Sass
- JavaScript
- Service workers
- Geonames
- Weatherbit 16 Day Weather Forecast API
- Weatherbit Current Weather API
- Pixabay
- REST Countries API
Follow the instructions below to setup the project locally.
Acquire credentials for the following API's and save them in .env file in the main directory
- user_name = Geonames username
- weatherApi = Weatherbit API KEY
- pixabayKey = Pixabay API KEY
Run the following command:
npm install
Run the following command if you want to bundle the modules for production:
npm run build
or in development mode:
npm run dev
Run the following command to run the server:
npm start
Run the following command to run the server:
npm run test
Note for the reviewer: In this app i used the current weather API if the trip is within 7 days, and forecast api if it was more. Extend your Project Further implemented in this app:
- Add end date and display length of trip.
- Pull in an image for the country from Pixabay API when the entered location brings up no results
- Integrate the REST Countries API to pull in data for the country being visited.
- Allow the user to remove the trip.
- Use Local Storage to save the data so that when they close, then revisit the page, their information is still there.
- Incorporate icons into forecast.
- Allow the user to add additional trips