API service for BA Torment
Bug Report
|
Request
API service for BA Torment.
It is deployed on my Mac mini server.
Most of the data is stored in Oracle Object Storage because it is static data.
This service is used to access a small dataset in the Supabase and to manage the user-uploaded YouTube links.
Please see the README of the ba-torment-batch folder.
For main data sources, please see the README of the ba-torment-batch folder.
In addition, the user-uploaded YouTube links are stored in the PostgreSQL database.
-
You need to install Python 3.12 and Poetry to manage the packages.
-
You need to set environment variables to run the script.
POSTGRES_HOST= POSTGRES_PORT= POSTGRES_USER= POSTGRES_PASSWORD= POSTGRES_DBNAME= BATORMENT_UPLOAD_URL="presigned-url-to-upload-images"
Activate the virtual environment
poetry shell
Install packages
This will install the required packages in the whole repository.
poetry install
Run the script
- You can run the FastAPI application with
uvicorn api.main:app --reload
. - Otherwise, you can run the API service with
run.py
in the root directory.
See the CONTRIBUTING.md.