GithubHelp home page GithubHelp logo

edushuaia / react-weather-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bmorelli25/react-weather-app

0.0 0.0 0.0 2.5 MB

A React Web App that utilizes the OpenWeatherMap API to return current and 5 day forecasted weather for a given location.

Home Page: http://still-springs-11020.herokuapp.com/

License: MIT License

JavaScript 88.64% CSS 8.24% HTML 3.12%

react-weather-app's Introduction

React Weather Application

Find the current weather and 5 day forecast of any city on earth with this simple little web app

Live Demo on Heroku

Simple React web application written with jsx that returns the current weather. The app utilizes:


HACKTOBERFEST!

This project was featured during DigitalOcean's 2016 HACKTOBERFEST! Thanks to everyone who contributed in both discussion and coding!


How to run the app locally:

  1. Run npm install to install all needed dependencies.
  2. Navigate to OpenWeatherMap's and get a free API key. Then, create a file named .env in the project root and add the following line: API_KEY=yourkeyhere. This will give you access to API_KEY as a global variable anywhere in the client. It allows you to use your API Key while keeping it secret from everyone else.
  3. Get a key to access the Google Places API.
  • Open index.html and replace this url on line 11: https://maps.googleapis.com/maps/api/js?key=AIzaSyBvieYHDi4AvoL33XpHgCUrYr3tEfOz6kQ&libraries=places with your own version of the link. Your API key should go after the = and before the &. See below: https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places
  1. If you don't have webpack installed on your machine, run npm install webpack -g.
  2. Open up two command prompts. In one, run webpack -w. This lets webpack watch for changes to your files. After any saved changes, webpack automatically runs and updates your bundle.js file.
  3. In the other command prompt run npm start or node server.js. These commands do the same thing: Starting your server to host the web app.
  4. Navigate to localhost:3000 to see the app in action

react-weather-app's People

Contributors

bmorelli25 avatar kopijunkie avatar jamesmacfie avatar rsm23 avatar schmalzs avatar tetreault avatar beatfreaker avatar antonioyee avatar brendanbowidas avatar g3org3 avatar mishakuzma avatar avi-jain 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.