https://github.com/madjava/weather-website
What to know what the weather is for a particular location or address?
https://github.com/madjava/weather-website
Last synced: 12 months ago
JSON representation
What to know what the weather is for a particular location or address?
- Host: GitHub
- URL: https://github.com/madjava/weather-website
- Owner: madjava
- Created: 2019-08-29T11:05:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:44:32.000Z (over 3 years ago)
- Last Synced: 2025-03-01T08:45:08.424Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://felix-weather-application.herokuapp.com/
- Size: 6.81 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather Website
What to know what the weather is for a particular location or address?
The weather app is a Web service that communicates with 2 external REST API's to retrive the current weather info for the provided address.
Weather data is requested from the [DarkSky](https://darksky.net/dev) api and geolocation data from [MapBox](https://www.mapbox.com/) api.
## Local Setup
After checking out, run
```bash
npm install
```
To install the required libraries, you will also need a MapBox and DarkSky key and token. You can create free accounts on their respective websites.
The application will be expecting the respective tokens as envirnment variables
```bash
process.env.MAP_BOX_TOKEN
```
and
```bash
process.env.DARKSKY_TOKEN
```
To start the server run
```bash
npm start
```
You can also provide the required parameters like so
```bash
MAP_BOX_TOKEN= DARKSKY_TOKEN= npm start
```
This will start the web service with the required tokens proviced as environment variables.
## The Live Version
You can also check out a live version hosted on [Heroku](https://www.heroku.com/) by visiting the [Weather Service](https://felix-weather-application.herokuapp.com) or follow this url `https://felix-weather-application.herokuapp.com/`