Skip to content

yashKathoke/IEM_hackathon_climate_change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

IEM Hackathon Charts

This project is a web application that visualizes CO2 and temperature data using React, Vite, and FastAPI.

Project Structure

  • frontend: Contains the React frontend application.
  • backend: Contains the FastAPI backend application.

Prerequisites

  • Node.js (v16 or higher)
  • Python (v3.8 or higher)
  • pip (Python package installer)

Setup

Clone the project

git clone https://github.com/yashKathoke/IEM_hackathon_climate_change.git
cd IEM_hackathon_climate_change

Backend

  1. Navigate to the backend directory:

    cd backend
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:

      .\venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  4. Install the required packages:

    pip install -r requirements.txt
  5. Create a .env file in the backend directory and add your API key:

    GEMINI_APIKEY=your_api_key_here
  6. Run the FastAPI server:

    uvicorn main:app --reload

Frontend

  1. Navigate to the frontend directory:

    cd frontend
  2. Install the required packages:

    npm install
  3. Start the development server:

    npm run dev

Running the Project

  1. Ensure the backend server is running.
  2. Ensure the frontend development server is running.
  3. Open your browser and navigate to http://localhost:3000 to view the application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published