Logo Lanfrica

agbaraka/weather-app

Domaine:

climate
Créateur:
agb
Hôte:
A Weather Web Application for Tanzania Cities. # 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 ```bash # install dependencies $ npm install # serve with hot reload at localhost:3000 $ export OWM_API_KEY=XXXX npm run dev ``` ## Production ```bash # install dependencies $ npm install # build for production and launch server $ npm run build $ export OWM_API_KEY=XXXX npm run start ``` ## Docker Container ```bash # 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 2. Axios 3. ExpressJS 4. Open Weather Map Api 5. Google Cloud Build 5. Google Container Registry 6. Google Cloud Run