peterabrahamdev / weather-bun-cli

CLI application to get weather data through OpenWeatherMap API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 73.5%Language:TypeScript 24.5%Language:Shell 1.9%