Skip to content

RomanRybka/translator-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

UI service for the go-translator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published