This is under development !!!!! This project fetch upon openweather api to get weather data and show that in your rocketchat room
- Go 1.23
- Hosted RocketChat Server.
- Clone the repository:
git clone git@github.com:S-Panta/go-weather-notify
- Go to project directory
cd go-weather-notify - Install dependencies
go mod tidy
- Get all environment variable
USER_NAME='rocket-chat-username' ROCKETCHAT_SERVER_URL = 'rocket-chat-server-url' USER_PASSWORD='rocket-chat-password' ROCKETCHAT_CHANNEL='rocket-chat-channel' OPEN_WEATHER_API_KEY='open-weather-api-key' (signup to https://openweathermap.org/ to get API key)
- Build the project
go build
- Run the executable file
- rename .env.example and set your own credentials
- run
docker-compose upand Enjoy
kubectl is command line tool for using the Kubernetes API and minikube is local Kubernete.
-
Install Kubernetes and minikube locally. Go to https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ for kubectl installation
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64 -
Start your cluster
minikube start --driver=dockerFor more installation queries, go to
https://minikube.sigs.k8s.io/docs/start -
Build the docker image of app
make docker-build -
Apply YAML files In deployment.yaml, set your credentials inside
valueofenvkubectl apply -f deployment.yaml kubectl apply -f service.yaml -
Access the application
minikube service go-weather-notify-service --url