This is the final project in the Front-End Developer Nanodegree by Udacity. It combines everything the nanodegree teaches and then some.
You just took a few days off work and you want to visit a particular city, but you need to know what the weather is/will be like so you can pack appropriate clothes.
- Enter start and end date of your vacation.
- Enter the city you want to visit.
- Click Search button.
The app displays:
- City name, country name.
- Min and max temperatures within a date range.
- A photo of the city the user entered.
- App takes the three inputs: Start date, end date, city name.
- Then with the city name, the app makes a request to Geonames API to get the latitude and longitude.
- The coordinates previously requested along with the dates the user entered are used to make a request to Weatherbit API* to get the weather within that range of days.
- The city name is also used to make a request to the Pixabay API, to get a picture of the destination.
- Note: Although Weatherbit API accepts city names, the project expect us to use multiple APIs for this project, hence the need to use Geonames for coordinates.
- HTML + CSS + JavaScript
- Node, Express.js, Webpack, Babel, Luxon.js (for dates), Litepicker (for date picker)
Asuming you have everything listed in the package.json installed, you start the server with:
npm start
Run production mode:
npm run build-prod
Run development mode:
npm run build-dev