Coder Social home page Coder Social logo

denniskigen / react-weather Goto Github PK

View Code? Open in Web Editor NEW
139.0 7.0 59.0 5.62 MB

Weather that's easy on the eyes

Home Page: https://react-weather.denniskigen.com/

License: MIT License

HTML 1.49% JavaScript 98.39% CSS 0.05% Shell 0.08%
openweathermap-api react weather tailwind tailwindcss vite

react-weather's Introduction

App logo

Landing page screenshot

build Deployment status Coverage Status

React Weather is a beautiful weather app built on top of the OpenWeatherMap API.

Getting started

  • Sign up over at openweathermap.org and get an API key.

  • Fork the project and clone it locally.

  • Install dependencies using pnpm:

    pnpm install
  • Create a file at the root of the project called .env.local with the following contents:

    VITE_API_URL = 'https://api.openweathermap.org/data/2.5'
    VITE_API_KEY = The API key you obtained from openweathermap.org
    VITE_ICON_URL = 'https://openweathermap.org/img/w'
    

react-weather's People

Contributors

denniskigen avatar dependabot[bot] avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-weather's Issues

Time delay

Time is around 30 min delay in the app to my local time,
I am in Kathmandu

Edit: It is correct again, dont know how

Store the API key in backend

You have used stored the API key in environment file so it prevents anyone from seeing the API key. But when someone uses this application and inspect in the Network tab in the browser then they can easily see the API key. You need to store the API key in the backend which will act as a proxy server and instead of sending the request to weather API from frontend directly you should send the API call from the backend that way the API key wont be exposed in the browser.

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.