API backend for liao961120/kwic
.
See requirements.txt
for dependencies. After the dependencies are met, run server with:
python3 main.py
The api would be served at http://localhost:1420
.
Download image:
#https://hub.docker.com/r/liao961120/asbc
docker pull liao961120/asbc
Run server:
#docker run -p host:container -v host:container <image-name>
# Unix-like bash: cd to `data/` and run:
docker container run -it -p 127.0.0.1:1420:80 -v $(pwd):/usr/src/app/data/ liao961120/asbc
# Windows cmd: cd to `data/` and run
docker container run -it -p 127.0.0.1:1420:80 -v %cd%:/usr/src/app/data/ liao961120/asbc
# Windows PowerShell: cd to `data/` and run
docker container run -it -p 127.0.0.1:1420:80 -v ${PWD}:/usr/src/app/data/ liao961120/asbc
The api would be served at http://localhost:1420
.