Skip to content

agbaraka/weather-app

Repository files navigation

Introduction

This is a web application for getting weather forecast for Tanzania cities.

The application is now hosted on Google Cloud Run. Click here to view the hosted version.

Build and Deploy

Enviroment Variables

The application requires OWM_API_KEY environment variable to be configured. This is an API_KEY that can be aquired from Open Weather API

Development

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ export OWM_API_KEY=XXXX npm run dev

Production

# install dependencies
$ npm install

# build for production and launch server
$ npm run build
$ export OWM_API_KEY=XXXX npm run start

Docker Container

# At the root of the project
$ docker build -t weather-app .

# Run the container
$ docker run --rm -p 3000:3000 -e OWM_API_KEY=XXXX weather-app

Acknowledgement

  1. NuxtJS
  2. Tailwind CSS
  3. Axios
  4. ExpressJS
  5. Open Weather Map Api
  6. Google Cloud Build
  7. Google Container Registry
  8. Google Cloud Run

Releases

No releases published

Packages

No packages published

Languages