Skip to content

TonyFwin/cloudcompilier

Repository files navigation

cloudcompiler

Welcome to cloudcompiler, an application for accurate and up to date weather information. You can search for any city and get comprehensive weather updates including current conditions, hourly forecasts and more.

Demo URL

Link to live demo -> Here

Prerequisites

Installation

  1. Unzip and move the repository into a folder of your choosing

  2. Navigate to the project directory

  3. Install dependencies

    npm install
  4. Obtain an OpenWeatherMap API Key

    • Go to OpenWeatherMap API and sign up for a free account

    • Generate a new API key form your account dashboard

  5. Set up your environment variables

    • Create a .env file in the root of the project and add your OpenWeatherMap API key:

      VITE_API_KEY=your_api_key_here

Running the App

  1. Start the dev server

    npm run dev
  2. Open your browser and navigate to the address you see in your console

    http://localhost:3000 #example address, your machine may be using a different port

Running the tests

  1. Start the dev server

    npm run test