Skip to content

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

Notifications You must be signed in to change notification settings

JiayuanWen/YuYuWeather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published