An open API service indexing awesome lists of open source software.

https://github.com/kunchalavikram1427/nodejs-weather-app


https://github.com/kunchalavikram1427/nodejs-weather-app

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# NodeJS Weather Application
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
Install necessary packages
```
npm install
```
## Test app
```
npm test
```

## 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
```