This project is a web application that visualizes CO2 and temperature data using React, Vite, and FastAPI.
- frontend: Contains the React frontend application.
- backend: Contains the FastAPI backend application.
- Node.js (v16 or higher)
- Python (v3.8 or higher)
- pip (Python package installer)
git clone https://github.com/yashKathoke/IEM_hackathon_climate_change.git
cd IEM_hackathon_climate_change
-
Navigate to the backend directory:
cd backend
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
.\venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.env
file in the backend directory and add your API key:GEMINI_APIKEY=your_api_key_here
Get api key here:: https://aistudio.google.com/prompts/new_chat
-
Run the FastAPI server:
uvicorn main:app --reload
-
Navigate to the frontend directory:
cd frontend
-
Install the required packages:
npm install
-
Start the development server:
npm run dev
- Ensure the backend server is running.
- Ensure the frontend development server is running.
- Open your browser and navigate to
http://localhost:3000
to view the application.