A simple weather app that provides accurate weather forecasts for the next 36 hours in Taiwan.
To run the Weather App on your local machine, follow these steps:
- Clone the repository.
- Install Docker (if not already installed).
- Install Minikube (if not already installed).
To start the Weather App:
- Start Minikube (if not already running):
minikube start
- Verify if Kubernetes is properly set:
kubectl version
- Link local Docker to Minikube:
minikube docker-env
- Execute each output line in your terminal.
- Build Docker Images:
docker build -t weather-page:latest ./page
docker build -t weather-api:latest ./api
- Apply page deployment and services in Kubernetes:
kubectl apply -f page-deployment.yaml
- Apply API deployment and services in Kubernetes:
kubectl apply -f api-deployment.yaml
- Apply Ingress:
kubectl apply -f weather-app-ingress.yaml
- Allow local access to the app:
minikube tunnel
- Open Your Browser and visit
http://localhost
. Enjoy a Sunny Day โ๏ธ!
- Get weather forecasts for the next 36 hours.
- Displays temperature, weather conditions, and other relevant information.
This Weather App is built using the following technologies:
- Frontend:
- React
- Version: ^18.2.0
- apollo-client
- Version: ^3.7.17
- MUI
- Version: ^5.14.2
- React
- Backend: GraphQL
- apollo-server
- Version: ^3.12.0
- apollo-server
- Containerization:
- Docker
- Version: 20.10.14
- Docker
- Orchestration:
- Kubernetes (Minikube for development)
- Version: v1.31.0
- Kubernetes (Minikube for development)