GithubHelp home page GithubHelp logo

weather-app's Introduction

Weather App

Weather App

A simple weather app that provides accurate weather forecasts for the next 36 hours in Taiwan.

Table of Contents

Usage

Installation

To run the Weather App on your local machine, follow these steps:

  1. Clone the repository.
  2. Install Docker (if not already installed).
  3. Install Minikube (if not already installed).

Running the App

To start the Weather App:

  1. Start Minikube (if not already running):
    • minikube start
  2. Verify if Kubernetes is properly set:
    • kubectl version
  3. Link local Docker to Minikube:
    • minikube docker-env
    • Execute each output line in your terminal.
  4. Build Docker Images:
    • docker build -t weather-page:latest ./page
    • docker build -t weather-api:latest ./api
  5. Apply page deployment and services in Kubernetes:
    • kubectl apply -f page-deployment.yaml
  6. Apply API deployment and services in Kubernetes:
    • kubectl apply -f api-deployment.yaml
  7. Apply Ingress:
    • kubectl apply -f weather-app-ingress.yaml
  8. Allow local access to the app:
    • minikube tunnel
  9. Open Your Browser and visit http://localhost. Enjoy a Sunny Day โ˜€๏ธ!
  • You will see the home page: Home Page
  • Select Your Location: Select Location
  • Have a nice day! Nice Day
  • Toggle to Show Preferred Data: Preferred Data

Features

  • Get weather forecasts for the next 36 hours.
  • Displays temperature, weather conditions, and other relevant information.

Technologies

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
  • Backend: GraphQL
    • apollo-server
      • Version: ^3.12.0
  • Containerization:
    • Docker
      • Version: 20.10.14
  • Orchestration:
    • Kubernetes (Minikube for development)
      • Version: v1.31.0

weather-app's People

Contributors

tiffany831101 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.