This is a weather application that allows you to search for the current weather for almost any city in the world. You can search by city and country or just by city. Additionally, the application has the capability to display the weather at your exact location.
- Search for current weather by city and country or just by city.
- Get weather at your exact location using geolocation.
- Detailed information about temperature, weather conditions, wind speed, and more.
- Simple and user-friendly interface.
- Clone this repository to your local machine.
- Register at rapidapi.com to obtain a weather API key.
- Use the Nominatim API freely without an API key. Just follow the API documentation.
- Create a file named .env in the project's root directory and add your API keys and URLs as follows:
// .env
API_WEATHER_URL="WEATHER_RAPID_API_URL"
API_WEATHER_KEY="RAPID_API_API_KEY"
API_CITY_URL="NOMINATRIM_API_URL"
- Ensure you have Node.js installed on your system.
- Install project dependencies by running
npm install
in the terminal from the project's root directory. - To run the application in development mode using Webpack DevServer, use the following command:
npm run dev:watch
This will start the development server and you will be able to access the application in your browser at http://localhost:8080 or another URL provided in the terminal that you define in the webpack.config.dev.js file within the devServer plugin.
- HTML, CSS, and JavaScript for the user interface.
- Rapid Api - WeatherAPI for weather data
- Nominatim to validate the existence of places in the world.
- Webpack bunddle
- Netlify for deploy
Contributions are welcome. If you find any issues or have an improvement in mind, please open an issue or submit a pull request.
This project is under the MIT License. For more details, see the LICENSE file.
Project developed by Carlos Machado - Linkedin
Esta es una aplicación de clima que te permite buscar el clima actual para casi cualquier ciudad del mundo. Puedes buscar por ciudad y país o solo por ciudad. Además, la aplicación tiene la capacidad de mostrar el clima en tu ubicación exacta.
- Buscar el clima actual por ciudad y país o solo por ciudad.
- Obtener el clima en tu ubicación exacta utilizando la geolocalización.
- Información detallada sobre la temperatura, condiciones climáticas, velocidad del viento y más.
- Interfaz simple y fácil de usar.
- Clona este repositorio a tu máquina local.
- Regístrate en rapidapi.com para obtener una clave API de clima.
- Usa libremente la API de Nominatim Sin necesidad de una API KEY, solo has las
- Crea un archivo
.env
en el directorio raíz del proyecto y agrega tus claves API y URL de la siguiente manera:
// .env
API_WEATHER_URL="WEATHER_RAPID_API_URL"
API_WEATHER_KEY="RAPID_API_API_KEY"
API_CITY_URL="NOMINATRIM_API_URL"
- Asegúrate de tener Node.js instalado en tu sistema.
- Instala las dependencias del proyecto ejecutando npm install en la terminal desde la raíz del proyecto.
- Para ejecutar la aplicación en modo desarrollo con Webpack DevServer, usa el siguiente comando:
npm run dev:watch
Esto iniciará el servidor de desarrollo y podrás acceder a la aplicación en tu navegador en http://localhost:8080 u otra URL proporcionada en la terminal que tu definas en el archivo webpack.config.dev.js dentro del plugin de devServer.
- HTML, CSS y JavaScript para la interfaz de usuario.
- WeatherAPI.com para los datos climáticos.
- Nominatim para validar la existencia de lugares del mundo.
- Webpack bunddle.
- Netlify para el despliegue.
Las contribuciones son bienvenidas. Si encuentras algún problema o tienes una mejora en mente, por favor abre un problema o envía una solicitud de extracción.
Este proyecto está bajo la Licencia MIT. Para más detalles, consulta el archivo LICENSE.
Proyecto desarrollado por Carlos Machado - Linkedin