This Nuxt application allows you to discover the current weather and time zone information for any location around the world. Simply input a location, and the app will display the relevant data, including weather conditions, time zone, and current time.
Before you begin, ensure you have met the following requirements:
Clone the repository:
git clone https://github.com/scottgriv/WTZ-Map.git
cd WTZ-Map
Install dependencies:
npm install
Obtain API keys:
Set up environment variables:
Create a .env
file in the root directory of your project and add your API keys:
NUXT_ENV_OPENWEATHER_API_KEY=your_openweathermap_api_key
NUXT_ENV_TIMEZONEDB_API_KEY=your_timezonedb_api_key
Run the application locally:
npm run dev
The application should now be running on http://localhost:3000
.
To deploy your Nuxt application to GitHub Pages, follow these steps:
Settings
.Secrets and variables
> Actions
.New repository secret
.NUXT_ENV_OPENWEATHER_API_KEY
NUXT_ENV_TIMEZONEDB_API_KEY
[!CAUTION] Secrets must have the
NUXT_ENV
prefix to properly work. See this Nuxt.js documentation here for more information.
APIs:
Technologies:
Maps Free Tile Providers (No API Key Required)
[!NOTE] Easily swap out your map provider by searching for the
Change Map Provider Here
comment in the code base. Replace the few lines of code below the comment with your map/tile provider or one of the providers mentioned above. By default, I'm using Esri with theWorld_Topo_Map
(topological) style.
This project is released under the terms of the MIT License, which permits use, modification, and distribution of the code, subject to the conditions outlined in the license.
Author: Scott Grivner Email: [email protected] Website: scottgrivner.dev Reference: Main Branch