Server side was built with Flask and Pytorch.
1. Create environment
python -m venv venv
source venv/bin/activate # or .\venv\Scripts\activate in Window
2. Install requirements
python -m pip install -U pip setuptools
pip install -r requirements.txt
pip install torch==1.9.0+cpu torchvision==0.10.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
Docker deployment here.
- Pre-built image is located on my Docker Hub with tag
theanhtran/ems-server:v1.0.0
. You cal also re-build image with following command.
cd client
docker build -t <image-tag> .
- Run image with following commands
docker run -p 3720:3720 <image-tag>
That's it. Now you can import server.json into Postman and explore it.