Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.16 KB

translator-ui

UI service for the translator-go

About

translator-ui it's a UI for the translator-go application.

Using

Base

The tranlator-ui application based on Flask framework To launch, necessary install all the Python dependency described in the file requirements, after lounch Flask application:

pip install --no-cache-dir -r requirements
export FLASK_APP=ui.py
flask run

Open the url:

http://127.0.0.1:5000/

Using translate-go

By default the translator-go application should be run on the same vm-instance and avalible to URL http://localhost:8080, else necessary export an environment variable TRANSLATE_SRV contain the translate-go URL, for example:

export TRANSLATE_SRV=http://translate-back.tr.srv.local:8080

Docker way

For convenience of running application created Dockerfile, so possible to build and run docker image.