Skip to content

andy3520/andy-nab-weather

Repository files navigation

Andy's Forecast

Preview

App Preview

Test Coverage

Coverage

Setup - run - test

  1. Create .env file:
    REACT_APP_ROOT_URL=http://localhost:3000
    REACT_APP_IP_ACCESS=dc6ef8fc6a024ceab08f9bdb7568f71c
  2. Install npm package and run
    yarn && yarn start
  3. Test
    yarn test
    Coverage test
    yarn test:coverage
  4. Go to http://localhost:3000

API

  1. Detect location by ip: https://ipstack.com
  2. Weather forecast: https://www.metaweather.com

Tech

  1. React (Typescript, Hooks)
  2. TailwindCSS
  3. Jest, react-testing-library
  4. Netlify

WARNING:

  • Detect location by ip api have limit: 10,000req/month please register and get new access key at http://ipstack.com