/
App 1 prod setup for super users

App 1 prod setup for super users

This document lists steps for user uploading flight data to the prod environment using their machines. Ideally, there’ll be a minimal number of such users, and most will upload data using designated servers at research stations.

 

Installation steps

These steps are specific to the Ubuntu 20.04+ Linux operating system. Changes for other Linux operating systems are mentioned. For Windows users, install wsl2 and your choice of Linux installation before following these steps.

 

  1. Install git, exiftool v12.60+, nodejs v21.6.1+ npm v10.2.4+ (it should be installed automatically with nodejs)

  1. Install python3.9+

  1. Install python virtual env: sudo apt install -y python3-venv (The command may vary based on linux flavor and number of python installations)

  2. Get codebase git clone https://github.com/precision-sustainable-ag/drone-pilot-upload.git and navigate to the codebase directory

  3. Frontend installation:

    1. Install dependencies: cd frontend && npm install

    2. Create .env file in frontend folder with REACT_APP_API_URL='http://localhost:5000/imgproc'

  4. Backend installation (re-navigate to the root folder of codebase):

    1. Create a new virtual environment: python3.9 -m venv ./backend/venv

    2. Install python dependencies: ./backend/venv/bin/python3 -m pip install -r ./backend/requirements.txt

    3. Edit config.py to change the database details - reach out to @Jinam

    4. Edit config.py to change the storage path to desired location where flight data will be stored locally and where globus endpoint points to.

  5. Setup globus endpoint to point at the folder set in storage_path in config.py . You will need permission to access the required globus storage locker. This access can be requested from @Chris Reberg-Horton or @Jinam. Pictures showing the steps are inserted towards the end.

  6. In two separate windows run these commands in parallel (from root directory of the codebase):

    1. For backend: ./backend/venv/bin/python3 ./backend/app.py

    2. For frontend: cd frontend && npm run start

 

Globus endpoint setup example

 

Step1_local_collection.png

 

Step3_Transfer_Timer_Options.png

 

 

 

Current super users:

  • Rob Austin (reaustin@ncsu.edu)

  • Joe Gage (jlgage@ncsu.edu)

  • Jerome Maleski (jjmalesk@ncsu.edu)

Related content

APP 1.5 details
APP 1.5 details
Read with this
Image upload page (App1)
Image upload page (App1)
More like this
NCSU on premises journey
NCSU on premises journey
Read with this
Drone pilot project software requirements
Drone pilot project software requirements
More like this
System Architecture
System Architecture
Read with this
Frontend Introduction
Frontend Introduction
More like this