Giter VIP home page Giter VIP logo

weather-app's Introduction

weather-app

Allows a user to fetch up-to-date weather data for their location from the OpenWeather API

image

To set up this app:

  1. Clone this repo:
  • git clone https://github.com/vaelentine/weather-app.git
  1. Go to https://home.openweathermap.org/users/sign_up,
  1. At the root folder of your cloned repo, create a .env file and add the following key and value pair:
  • REACT_APP_WEATHER_API_KEY=<your api key>
  1. Install app and dependencies.
  • run npm install

⚠️ Note that if you skip step 3

  • you will see a warning banner on loading the app ❗
  • and the app snapshot test will fail 💣
  • (For testing purposes, feel free to use my api key REACT_APP_WEATHER_API_KEY=9b1d1757d00d6749255000675acc1e01)

Running the app:

Provided you did all of the prerequisites, you should now be able to run commands:

  • To execute test suites, run npm test
  • To run in dev mode, run npm start. This will compile the app and start up a browser session at localhost:3000.

Deploy to production:

  • make sure 'serve' is installed, run npm i serve -g
  • Prepare a production build npm run build
  • Then, serve it with serve -s build -l (default port is 5000 if no port provided)

weather-app's People

Contributors

vaelentine avatar

Watchers

James Cloos avatar  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.