Skip to content

PocFarmers/Farm_It

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Farm It

A strategic farming simulation game using real NASA climate data.

Prerequisites

  • Node.js: Version 20 or higher
  • Python: Version 3.13 or compatible

Installation & Setup

Backend Setup

  1. Navigate to the Backend directory:
cd Backend
  1. Create a Python virtual environment:
python -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install Python dependencies:
pip install -r requirements.txt
  1. Create a .env file in the Backend directory with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
  1. Start the backend server:
./venv/bin/python -m uvicorn main:app --reload

The backend API will be available at http://localhost:8000

Frontend Setup

  1. Navigate to the Frontend directory:
cd frontend
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

The frontend will be available at http://localhost:5173 (or the port specified by Vite)

Quick Start

To run the complete application:

Terminal 1 (Backend):

cd Backend
source venv/bin/activate
./venv/bin/python -m uvicorn main:app --reload

Terminal 2 (Frontend):

cd frontend
npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors