The app displays a weather forecast and country information. The functionality is that the user enters a location and an upcoming travel date, then the web application will provide information about the country the user wants to travel to and the temperature for the selected date.
Geonames - Weatherbit - Pixabay - Restcountries
-
HTML5
-
Saas
-
Vanilla JS
-
Node.js & Express environment
-
Webpack
-
Service workers
-
Jest
"@types/date-fns": "^2.6.0"
-
"body-parser": "^1.19.0"
-
"cors": "^2.8.5"
-
"date-fns": "^2.20.1"
-
dotenv": "^8.2.0"
-
express": "^4.17.1"
-
node-fetch": "^2.6.1"
"@babel/core": "^7.13.14"
-
"@babel/preset-env": "^7.13.12"
-
"babel-loader": "^8.2.2"
-
"clean-webpack-plugin": "^3.0.0"
-
"css-loader": "^5.2.0"
-
"html-webpack-plugin": "^5.3.1"
-
"jest": "^26.6.3"
-
"mini-css-extract-plugin": "^1.4.0"
-
"node-sass": "^5.0.0"
-
"optimize-css-assets-webpack-plugin": "^5.0.4"
-
"sass-loader": "^11.0.1"
-
"style-loader": "^2.0.0"
-
"terser-webpack-plugin": "^5.1.1"
-
"webpack": "^5.28.0"
-
"webpack-cli": "^4.6.0"
-
"webpack-dev-server": "^3.11.0"
- Go to Geonames, Weatherbit, Pixabay, Restcountries and get your API key.
- Create an
.env
file and add the API_KEY in this file.
-
Clone or Download this repo
-
cd
into your new folder and run: -
npm install
You can use this command for starting a project. npm install downloads a package and it's dependencies -
npm run dev
to start the webpack dev server on port 8080 -
npm run prod
to generate a dist folder for prod -
npm start
to run the Express server on port 8081