Skip to content

hit0mim/weatherapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Languages

  • Go 87.3%
  • Dockerfile 12.7%