TLNP is a Turkish Language formatting API for creating perfect documents.At now it is on the Raw potatoes release.
For use this API:
First:
For Linux
`$ sudo apt-get install python-pip python-dev build-essential `
For OSX:
`$ sudo curl https://bootstrap.pypa.io/get-pip.py > get-pip.py `
`$ sudo python get-pip.py `
And after:
This is for creating own virtual workspace.
$ pip install virtualenv
After installed these modules without any error.
`$ cd FLASK-API/
$ source api bin/activate`
You can activate the virtualenv but you need install packages again:
`$(api) pip install -r requirements.txt`
(FOR YOUR HOST .)
$ pip install -r requirements.txt
For run the server:
`(api) $ python server.py`
And server is runnig:
`localhost:5000/api`
After client-test:
`$ python client.py`
`localhost:4000`
FOR USE THE ON DOCKER: Change the directory
$ cd FLASK-API/docker-flask-api
Build container on your system:
$ docker-compose build
Wake up the containers
$ docker-compose up
localhost:5000
is default IP on your local address.
If you did not install Docker to on your host machine look the Docker-Docs: