This project contains the frontend codebase for drone image manipulation tool (app 2).
- Get runner: https://raw.githubusercontent.com/precision-sustainable-ag/drone-image_processing-api/develop/run.sh
- Execute
./run.sh
run.sh
will create and configure both the frontend (https://github.com/precision-sustainable-ag/drone-image-manipulation) and the backend
Needs work - adding command comments for reference
There is no .env file to configure the api url. The different environments are configured using profiles for docker compose.
Configurations are defined: docker-compose.yml
.
There are three configurations available:
dev-prod
: This configuration uses the prod API (dronepilotapp.psi.ncsu.edu) and hot-loads frontend code for developmentdev-local
: This configuration expects backend API available at localhost:3000 with file server configured in the backend implementation (code is hot-loaded)prod
: This configuration builds the code for production environment and configures nginx along with reverse-proxy for accessing the API
Run the docker compose command in the root folder of the codebase
docker compose --profile dev-prod up -d --build --force-recreate --remove-orphans
docker compose --profile dev-prod up -d
if rebuild is not required.
docker compose --profile dev-local up -d --build --force-recreate