@echo off
echo Setting up Dart project for crop.health API testing...

REM Create the project directory
mkdir crop_health_test
cd crop_health_test

REM Create pubspec.yaml
echo name: crop_health_test > pubspec.yaml
echo description: A simple Dart app to test crop.health API >> pubspec.yaml
echo version: 1.0.0 >> pubspec.yaml
echo environment: >> pubspec.yaml
echo   sdk: '^3.0.0' >> pubspec.yaml
echo dependencies: >> pubspec.yaml
echo   http: ^1.1.0 >> pubspec.yaml

REM Copy the Dart script
echo Copying Dart script...
copy ..\temp_scripts\fetch_crop_health.dart bin\main.dart

REM Install dependencies
echo Installing dependencies...
dart pub get

echo Setup complete! You can run the script with: dart run bin/main.dart 