Skip to content

ar4mirez/weatherapp

Repository files navigation

Weather API in Golang

This is a simple Golang weather API that acts as a proxy to the OpenWeatherMap API. It allows you to retrieve weather data for a specific city.

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your system:

Build and Run the Application

Follow these steps to build and run the application in a Docker container:

Clone this repository:

git clone https://github.com/ar4mirez/weatherapp.git

Navigate to the project directory

cd weatherapp

Build the Docker image

docker build -t weatherapp .

Run the Docker container

docker run -p 8080:8080 -e OPENWEATHERMAP_API_KEY=your_api_key_here weatherapp

Replace your_api_key_here with your actual OpenWeatherMap API key. The weather API will be accessible at http://localhost:8080/weather?city=CityName.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages