Welcome :)
This repository contains a web application which displays the weather and time of an added location.
It is built with HTML, CSS and vanilla JS.
The live demo can be found here.
In order to use the app you first need to add
To start the development server you need to add a .env
file at the root of the project with the Api key from the Ninja API like this:
API_KEY=[YOUR API KEY]
Then run:
npm i
netlify dev
Or you can just open the index.html
located at src/locatios-info
file in your browser.
Ninja API is used for geocoordinates, time and temperature.
The app is deployed on Netlify. In addition, it uses Netlify serverless functions to make API calls that hide the API key and does not use a dedicated server. Here you can learn more.
- User can add a location by typing the name of location in a searchbar.
- User can select a location from the search bar which will be added in the locations card list.
- Each card shows the location's temperature and time.
- User can toggle the temperature unit between celsius and fahrenheit.
- User can toggle the time unit between the 12 and 24 hour format.
A simple web application which displays the current temperature of city Playa del Carmen, in Mexico.
Built with HTML,CSS and JS.
Open meteo API is used for getting the current temperature.
- A card which displays the current temperature in Playa del Carmen, Mexico.
- User can toggle the temperature unit between celsius and fahrenheit.