Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 663 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 663 Bytes

Backend API

Dependencies

  • Poetry
  • GDAL and GEOS
  • Docker

Set-up

  1. Install python dependencies:
poetry install
  1. Create a .env file in the root directory with:
BASE_PATH=/path/to/your/assets

The path to your assets should matches that used when running the pipeline.

  1. Run the server:
poetry run uvicorn main:app --reload

Deployment

Deploying to Fly.io

  1. Follow their installation guide.
  2. cd backend && fly deploy

Uploading files to fly volume

To get files to the fly machine, run flyctl ssh sftp shell then use the put {local_file_path} {vm_file_path} command to upload files.