This app finds weather conditions and image for the user's trip destination using city name and date of arrival.
This is a capstone project of the Front End Developer Nanodegree program by Udacity.
The following topics has been covered:
- HTML, CSS, JavaScript, DOM and Events
- Node and Express
- Webpack, Babel and Sass
- API integration
- Testing using Jest
- Offline functionality using service workers
- Install Node.
npm install
- Rename
.env-example
to.env
and add your API credentials. This project relies on the following APIs:- Geonames to get coordinates
- Weatherbit to get weather data by coordinates
- Pixabay to get an image
npm run build-prod
to bundle our assets for production modenpm start
to start the server
Note: this app runs on localhost:8081, but you can change this in /server/index.js
npm run build-dev
to start webpack dev server which runs on localhost:8080- Open another terminal and enter
npm start
, so that we can use our express server endpoints.
Use npm test
command to run the tests