Skip to content

sudipt1999/Weather-report-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

An app that will give you weather report of your location.

Getting Started

Required API Keys

This application uses the Mapbox geolocation API to determine the precise lattitude and longitude of a given location.

  1. Register for a Mapbox account
  2. Navigate to the Tokens dashboard and create a new public token.

The latitude and longitute are fed into the Dark Sky weather API, which retrieves an accurate forecast for the selected location.

  1. Sign up for the Dark Sky API
  2. After signing in, you will get a secret key

Both Mapbox and Dark Sky are paid services that allow for up to 1000 calls a day for free. If you wish to host this application publicly, you may need to upgrade your API access.

Configure the application with your API keys

  1. Create a secret.js file in root dir

  2. Add your API key from Dark Sky and LocationIQ.

let apiKey  =  {
    geocodingApi: YOUR API KEY,
    darkskyApi: YOUR API KEY,
};

module.exports = apiKey

Running the Project

  1. run npm install in the root dir
  2. run npm start in terminal to start the server
  3. point your browser to localhost:3000 (default)
  4. Enjoy the project

Resources

Paste your keys!

  1. Run npm install in the root dir.
  2. Run npm start in terminal.
  3. Enjoy the project.

Contributing

View our Contributing Docs for information regarding contributing to this project.

About

A weather forecast app that provides weather info about any place on earth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published