Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 945 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 945 Bytes

wyly-brain

Brain to predict "what is this?" for Wyly

Requirement for Development

  • Python 3.8.x
  • Poetry
    • package manager
  • Linters and formatters
    • tools are installed by poetry install

Setup Development Environment

Setup virtual env and install dependency packages

  • poetry install

Update virtual env

  • execute poetry update on adding/updating dependencies

Run test

At first, locate GCP credential file on ./app/credential/gcp-sa-key.json.
Service account should be viewer role to use Vision API.

  • run unit test: make test
  • run lint: make lint
  • run unit test and lint: make check

Run server

On Docker

  1. build docker: make build
  2. run API sever on docker: make run
  3. test API: make ping or make identify
  4. stop API sever on docker: make stop

On host OS

  • poetry run uvicorn app.main:app --reload