Skip to content

ydjin0602/recommends

Repository files navigation

General information

Service to search recommended sku by other sku

Environment variables

Name Default Description
APP_PORT "" Application port
LISTEN_HOST "0.0.0.0" Container host
WORKERS "5" Gunicorn workers
THREADS "2" Gunicorn threads

Run service

  1. Clone repository.
  2. Add csv file with 3 columns near application.
  3. Set environment variables in .env file.
  4. Run command docker-compose up -d --build.

Viewing logs

  • Run command docker logs <container_id>

Usage

Request:

GET localhost:port/
payload:
{
    "sku": str,
    "rec_min": Optional[float]
}

Response:

{
    "sku_found": int,
    "result": [str, str, ...]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published