Coder Social home page Coder Social logo

kodie / reather Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 2.06 MB

A React Weather App Exercise

Home Page: https://kodie.github.io/reather

License: MIT License

HTML 7.75% CSS 8.63% JavaScript 83.62%
react reactjs weather openweathermap openweathermap-api geonames react-snapshot javascript gh-pages

reather's Introduction

Reather

Travis build status license

A React Weather App Exercise

Installation

$ git clone https://github.com/kodie/reather.git
$ cd reather
$ npm install

Development

$ npm start

The app will start in development mode available at http://localhost:3000 and will automatically refresh if you make any edits.

Test

$ npm test

All API calls are mocked so that tests can be ran offline.

Build

$ npm run build

An optimized production version of the app will be built in the /build folder. react-snapshot is used to pre-render the app.

Deployment

The app is automatically tested and then built and pushed to the gh-pages branch (which is served via GitHub Pages and available at https://kodie.github.io/reather) via Travis CI whenever a commit is pushed to master.

Optionally you can build and deploy manually by running:

$ npm run deploy

License

MIT. See the LICENSE file for more info.

reather's People

Contributors

kodie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

reather's Issues

More tests!

Currently it only runs 4 tests, I'd like to add some more. For example a test to check if getWeather() is properly distinguishing between a city name, zip code, or coordinates.

Location names are sometimes different between geonames.org and openweathermap.org APIs

For example, if you search for and select "Newton, Florida" from the autocomplete drop-down and press "Go!", the location name is "Tallahassee" in the results.

Also if I'm at my house in Des Moines, Iowa, and allow the app to get my coordinates and press "Go!", the location name is "Pleasant Hill" in the results which happens pretty often with other location based apps as well.

I'm guessing this has to do with the locations being close to each other.

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.