Skip to content

CLI application to get weather data through OpenWeatherMap API

Notifications You must be signed in to change notification settings

peterabrahamdev/weather-bun-cli

Repository files navigation

Weather CLI App

This simple weather app fetches current weather information using the OpenWeatherMap API and displays it in the console.

weather-cli-bun

Prerequisites

  • Bun installed
  • OpenWeatherMap API key (Sign up here to get your API key)

Setup

  1. Clone the repository:

    git clone https://github.com/peterabrahamdev/weather-bun-cli.git
  2. Install dependencies

    bun install -D @types/inquirer
    bun install axios
  3. Set your OpenWeatherApp API key:
    Create a .env file in the root folder of your project and add your API key:

    API_KEY=<your_api_key>

Usage

Run the application:

bun run index.ts

About

CLI application to get weather data through OpenWeatherMap API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published