HUB
Sign inSign up
techrolemiweatherapp logo

marknre/techrolemiweatherapp

By marknre

•Updated about 4 years ago
Archived

A web app that displays current conditions, air quality, and a 15-day weather forecast.

Image
1

78

marknre/techrolemiweatherapp repository overview

An Embedded Javascript (EJS) web app using NodeJS-Express scaffolding to call weather API provider for weather reports.

  1. docker pull marknre/techrolemiweatherapp:latest
  2. Register with weatherbit.io for a free API_KEY. No credit card is required.
  3. Register with https://app.exchangerate-api.com/sign-up for a free API_KEY. No credit card is required.
  4. Run this weather server with the instruction below. Notice that environment variables (secret key) is required to run the app is not being included in the Dockerfile. The secret key will be a run-time parameter for the container.

eg. ... -e WEATHERBIT_KEY=XXXXXXX

Note also that Dockerfile exposes port 8080. This needs to be forwarded to a port on your host machine. i.e.

LOCAL_PORT:CONTAINER_PORT for example 4321:8080

Command syntax:

docker run -p 4321:8080 --memory=128m -e \
 WEATHERBIT_KEY=Actual_Secret_Key_for_Weatherbit  \
 EXCHANGE_RATE_APIKEY=Exchange_Secret_Key \
 marknre/techrolemiweatherapp:latest

GitHub: https://hurricanemark.github.io/Weather_Report_NodeJS_EJS_Express_WeatherBit_API/⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:8ab89c7a9…
Size
446.6 MB
Last updated
about 4 years ago
docker pull marknre/techrolemiweatherapp:5.0