Sign inSign up

kunchalavikram/nodejs-weather-app

By kunchalavikram

•Updated almost 3 years ago

Simple Node.js Weather App. Weather data is fetched from the OpenWeatherMap API openweathermap.org/

Image
0

342

kunchalavikram/nodejs-weather-app repository overview

⁠Weather App

Below is a simple Node.js project using Express for the backend, EJS for the view engine, and Bootstrap for styling. The weather data is fetched from the OpenWeatherMap API https://home.openweathermap.org/

⁠Install packages

Create package.json & Install necessary packages

npm init -y
npm install express axios ejs

⁠Run the app

API_KEY=123456789 node server.js 

⁠Build and run the Docker container

docker build -t weather-app .
docker run -d -p 3000:3000 -e API_KEY=123456789 weather-app

Tag summary

Content type

Image

Digest

sha256:d7b09dc81…

Size

337.2 MB

Last updated

almost 3 years ago

docker pull kunchalavikram/nodejs-weather-app