- Python 3.11.10 or higher
- pip (Python package manager)
- Google Earth Engine (Batch Compute Engine) access (Authorized IAM User with Service Account Credentials)
- BigQuery Instance access (Authorized IAM User with Service Account Credentials)
- PostgreSQL DB
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
pip install -r requirements.txt
- Create a .env file based on .env.sample
If you set up PostgreSQL outside of GCP make sure to set the database connection in 'src/database.py' accordingly.
Run all Seed files inside /setup:
- Run bigquery.seed.sql on your BigQuery instance
- Run db.seed.sql on your PostgreSQL instance
- Run test.seed.sql on your PostgresSQL instance to allow for integration and end-2-end tests.
fastapi dev src/main.py
To run the tests use the pytest command inside your venv
pytest