ilvits / expressJS--weather-app

First Express JS Project with Native JS Web APP ( + tailwind and alpine)
https://weather.fairybrains.com
1 stars 2 forks source link

Some problems #1

Open Johnnywick1 opened 1 year ago

Johnnywick1 commented 1 year ago

Helllo,

Great app. I have some problem. I put all files from the public folder to my web server. Everything works fine (all buttons works) till I want to search a location. There is no action. What I do wrong? Could you help me?

Thank you

ilvits commented 1 year ago

Hi!

Thats because this app uses two API:

  1. "Visual Crossing Weather Data" - for Weather Data
  2. "Mapbox" - for GeoLocation

You need to register at these data providers, get API keys and write it to .env file(create it in the root of project) like this:

VISUAL_CROSSING__API_TOKEN = "YOUR API KEY" MAPBOX_API_TOKEN = "your mapbox api key"

For security reason, this file(.env) did not included in repo.