A web tool that allows adding travel plans and displays weather information in the destination.
This is a single-page web application which pulls data from 3 APIs - Geonames, Weatherbit, and Pixabay.
This project demonstrates the following front end web development skills:
- HTML, CSS and SASS
- Setting up Webpack
- Webpack Loaders and Plugins
- Creating layouts and page design
- Service workers
- Using APIs and creating requests to external urls with fetch
- Using Express to set up a back end server
This project is part of Udacity Front End Web Development Nanodegree.
See project rubric for more.
You need Node.js and npm installed on you computer. Use version 14.0.0 or higher of Node.js.
-
Clone this repo to your local machine.
-
Run
npm install
in the project folder on your local machine. -
Sign up for API keys form GeoNames, Weatherbit, and Pixabay.
-
Create a
.env
file in the root of your project and paste your API keys in it like this:GEONAMES_USER = ******** WEATHERBIT_API_KEY = ********************* PIXABAY_API_KEY = ********************
- Make sure you have run
npm install
. - In the terminal, run
npm build
andnpm run start
when the build completes. The app will run on port 3000.
- Make sure you have run
npm install
. - In the terminal, run
npm build-dev
. - Open up a second terminal window and execute
npm run start
(this is needed to execute the API requests on the server side). - The app will automatically launch on Webpack Devserver on port 8080.
- Run
npm install
if you haven't yet to install project dependencies - Run
npm test
to execute the unit tests.