Giter VIP home page Giter VIP logo

yuyuweather's Introduction

YuYu Weather

Minimal and easy to use weather web app, quick glance at what's above ☀️☁️☔️.


App URL:

https://jiayuanwen.github.io/YuYuWeather


Features

  • Weather info of your current location

    • Temperature
    • Temperature (Feels Like)
    • Wind Speed
    • Humidity
    • Pressure
  • Weather forecast up to 5 days ahead

  • Switch between Metric and Imperial unit for readings

  • Custom accent color

  • Light/Dark mode support

For devs

To run the project
  1. Be sure you have nodejs and git installed on your system.

  2. Go inside the app folder:

    # Linux
    cd /path/to/YuYuWeather/yuyuweather/
    
    # Windows
    cd "<Drive Letter>:\path\to\YuYuWeather\"
  3. Install dependencies:

    npm install
  4. On an internet browser, go to https://openweathermap.org/, and register for an account.

  5. Go to https://openweathermap.org/api, click Subscribe for Current Weather Data, then choose Free tier. Follow any additional steps on-screen. You should then be able to see your API key at https://home.openweathermap.org/api_keys.

  6. Back to your terminal, use a text editor of your choice (vim,nano,kim, etc...) to add a api.js file:

    <text-editor> ./src/components/weather/api.js
  7. Copy this script into api.js:

    const openweather_api = () => {
        return `API`;
    }
    
    export {openweather_api};

    Replace API with the API key you got from https://home.openweathermap.org/api_keys. Save the file after making your changes.

  8. On your terminal, run the following command to start the project:

    npm start

    The app should start on your default browser after a while. If not, on your browser, type in localhost:3000 on the URL bar.

    Note

    Your localhost port is different if you changed it following the To change localhost port section.

    From now on, you may repeat the command from step 8 for future testings.

To change localhost port

To change localhost port

  1. Open package.json inside yuyuweather.
  2. Locate the following line:
    "start": "react-scripts start"
    Change it to:
    # For Linux & MacOS
    "start": "PORT=<desire_port> react-scripts start"
    
    # For Windows
    "start": "set PORT=<desire_port> && react-scripts start"
    And replace <desire_port> to your desire port number.

Credits

Modules used

Data source

Visual design

Special thanks

yuyuweather's People

Contributors

jiayuanwen avatar

Stargazers

Jesse Hasty avatar  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.